[英]CFBundleIdentifier", Does Not Exist
我在iOS的本機應用程序中遇到以下錯誤。
Installing build/Build/Products/Debug-iphonesimulator/Este.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/Este.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
但是我看到Info.plist有如下的CFBundleIdentifier。
<key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>
我也嘗試過改變上面的內容
<key>CFBundleIdentifier</key>
<string>com.myApp</string>
但同樣的錯誤。 請幫忙。
我還看到在上述錯誤之前顯示以下錯誤
node_modules/react-native-fbsdk/ios/RCTFBSDK/share/RCTFBSDKShareDialog.h:21:9: fatal error:
'FBSDKShareKit/FBSDKShareKit.h' file not found
#import <FBSDKShareKit/FBSDKShareKit.h>
在我錯過了這個錯誤的時間后,我找到了解決方案,問題出在pods中,可能是在更新某些庫時,pods不同步。
我的解決方案:轉到/ ios文件夾---->並運行命令:
pod install && pod update
rm -rf node_modules && npm install
清理ios構建文件夾:·
rm -rf ios / build
之后,像往常一樣運行:·
反應原生的run-ios
您可以嘗試將其更改為$(PRODUCT_BUNDLE_IDENTIFIER)
將facebook rnfbsdk框架放在〜/ documents /文件夾中后問題得以解決。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.