原生iOS項目匯入ReactNative,各種問題

來源:互聯網
上載者:User

標籤:ann   成功   line   locate   div   dir   項目匯入   com   教程   

iOS原生項目整合React-Native,按React-Native中文網教程走,因為是新版本0.54.4的React-Native,中間遇到React-Native依賴庫安裝總是失敗,其中一條錯誤提示:SDK "iPhoneOS" cannot be located

坑呀,各種百度,找到解決連結:50614062,記錄如此,主要是Xcode路徑不對,根本原因是我之前安裝個兩個Xcode,

xcode-select --print-path

/Library/Developer/CommandLineTools

$ xcodebuild -showsdks

xcode-select: error: tool ‘xcodebuild‘ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools‘ is a command line tools instance

修改路徑正確命令列 $ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/

搞定,

另今天匯入React-Native,練習,完成後發現運行項目總是提示folly/folly-config.h 找不到,苦逼的試了好幾次,依舊報錯,後嘗試package.json中把React-Native版本修改降到0.54,重新npm install,然後pod install,項目才算編譯成功,,,

 

原生iOS項目匯入ReactNative,各種問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.