首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CFBundleIdentifier",不存在

CFBundleIdentifier",不存在
EN

Stack Overflow用户
提问于 2016-09-06 08:58:13
回答 3查看 9.7K关注 0票数 5

我在iOS的react本机应用程序中遇到以下错误。

代码语言:javascript
复制
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。

代码语言:javascript
复制
<key>CFBundleIdentifier</key>
<string>org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)</string>

我还尝试将上面的内容更改为

代码语言:javascript
复制
<key>CFBundleIdentifier</key>
 <string>com.myApp</string>

但是同样的错误。请帮帮忙。

我还看到在上面的错误之前显示了以下错误

代码语言:javascript
复制
node_modules/react-native-fbsdk/ios/RCTFBSDK/share/RCTFBSDKShareDialog.h:21:9: fatal error: 
      'FBSDKShareKit/FBSDKShareKit.h' file not found
#import <FBSDKShareKit/FBSDKShareKit.h>
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2016-09-06 10:27:02

将facebook rnfbsdk框架放入~/document/文件夹后,问题就解决了。

票数 -4
EN

Stack Overflow用户

发布于 2017-05-23 18:06:35

在这个错误浪费了我的时间后,我找到了解决方案,问题出在pods中,它可能是在更新一些库时,pods不同步。

我的解决方案:转到/ios文件夹->并运行命令:·

pod安装和pod更新

  • 之后,返回到项目文件夹->并运行命令:·

rm -rf node_modules & npm安装

清理ios构建文件夹:·

rm -rf ios/内部版本

之后,像往常一样运行:·

react-本机运行-ios

票数 5
EN

Stack Overflow用户

发布于 2016-09-06 09:49:02

您可以尝试将其更改为$(PRODUCT_BUNDLE_IDENTIFIER)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39339247

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档