2016-08-07 22 views
6

Tôi đang chạy ứng dụng bản địa phản ứng trên máy Mac OS X El Capitan cục bộ của tôi. Tôi đã cài đặt các phụ thuộc bắt buộc, nhưng ứng dụng vẫn không khởi chạy trong trình mô phỏng iOS.Lỗi xây dựng ứng dụng iOS gốc phản ứng - In: Entry, ": CFBundleIdentifier", Không tồn tại

Đây là kết quả:

** BUILD FAILED ** 


The following build commands failed: 
    Ld build/Build/Products/Debug-iphonesimulator/F8v2.app/F8v2 normal x86_64 
(1 failure) 
Installing build/Build/Products/Debug-iphonesimulator/F8v2.app 
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22): 
Failed to install the requested application 
The bundle identifier of the application could not be determined. 
Ensure that the application's Info.plist contains a value for CFBundleIdentifier. 
Print: Entry, ":CFBundleIdentifier", Does Not Exist 
/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/done.js:10 
     throw err; 
    ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/F8v2.app/Info.plist 
Print: Entry, ":CFBundleIdentifier", Does Not Exist 

    at checkExecSyncError (child_process.js:464:13) 
    at Object.execFileSync (child_process.js:484:13) 
    at _runIOS (/Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:82:32) 
    at /Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:24:5 
    at tryCallTwo (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:45:5) 
    at doResolve (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:200:13) 
    at new Promise (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:66:3) 
    at Array.runIOS (/Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:23:10) 
    at Object.run (/Users/-/f8app/node_modules/react-native/local-cli/cliEntry.js:96:13) 
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7) 
+0

Bạn đã cố gắng làm sạch và xây dựng lại dự án của mình chưa? Bạn có chạy 'cd ios && pod install' và mở tệp .xcworkspace không? –

+0

Cùng một vấn đề được thảo luận ở đây, với nhiều ý tưởng khác nhau về cách khắc phục: https://github.com/facebook/react-native/issues/7308 - những gì đã hiệu quả đối với tôi đang chạy 'nâng cấp bản địa phản ứng' để có được thay đổi tệp pbxproject mới nhất. – jevakallio

Trả lời

11

Run react-native upgrade và ghi đè lên tất cả các file iOS. Điều đó đã làm nó cho tôi.

+0

giải pháp duy nhất khắc phục tất cả chúng nằm rải rác trên internet –

Các vấn đề liên quan