[英]Xcode 7.3: error: could not read CFBundleIdentifier from Info.plist (null) after pods configuration
I've downloaded Telegram's code and I'm playing around trying to add Auth0 with it, so I tried to used pods, replicating the practice code. 我已经下载了Telegram的代码,并且正在尝试添加Auth0,所以我尝试使用pod来复制练习代码。
After some pain regarding PODS_ROOT, I finally managed to get it going, only to encounter the above error. 经过一番关于PODS_ROOT的痛苦之后,我终于设法解决了这个问题,只是遇到了以上错误。
And now I'm not sure what to do. 现在我不确定该怎么办。 This answer leads me to believe there's an issue with the info.plist file location, but there's too many: 这个答案使我相信info.plist文件的位置存在问题,但是有太多问题:
UPDATE: 更新:
I saw that the Bundle Identifiers
for the Targets were blank , in contrast to the 'base' Telegram app (perhaps something to do with switching from config
configuration to Pods-Telegraph
?), which had values in it. 与“基本” Telegram应用程序(可能与从config
配置切换到Pods-Telegraph
?有所Pods-Telegraph
)相比,我看到目标的Bundle Identifiers
为空白 。 So I copied over the Bundle Identifiers
from the 'base' app like so: 因此,我从“基本”应用程序复制了Bundle Identifiers
,如下所示:
And promptly ended with this new issue: 并迅速结束了这个新问题:
ld: library not found for -lPods-watchkitapp Extension clang: error: linker command failed with exit code 1 (use -v to see invocation)
EDIT: 编辑:
For reference: 以供参考:
Telegram (iOS version is Objective-C) 电报(iOS版本为Objective-C)
Auth0 验证码0
For replication, I: 对于复制,我:
Close your project . 关闭您的项目。 Open Again. 再次打开。 Clean your project and try to run. 清理您的项目并尝试运行。
And if its not works then Search info.plist right click -> Remove reference . 如果不起作用,请右键单击->删除引用,搜索info.plist 。 And add it again. 并再次添加。 and try to Build. 并尝试构建。
EDIT :- After installing pod You need open project from .xcworkspace in place of .xcodeproject . 编辑:-安装pod之后,您需要从.xcworkspace打开项目,而不是.xcodeproject。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.