简体   繁体   English

Xcode 7.3:错误:pod配置完成后,无法从Info.plist中读取CFBundleIdentifier(空)

[英]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: 对于复制,我:

  • Downloaded necessary files for each project. 为每个项目下载了必要的文件。 Telegram is missing some files scattered around the net, and Auth0 requires a (free) account for configuration. 电报丢失了一些分散在网上的文件,并且Auth0需要一个(免费)帐户进行配置。
  • Created a podfile for Telegram. 为Telegram创建了一个podfile。
  • Modified it to resemble Auth0 podfile - Target main app only. 对其进行了修改,使其类似于Auth0 podfile-仅定位到主应用。 If done right, this should replicate the error in question. 如果操作正确,这应该复制有问题的错误。
  • Filled in Bundle Filters (erased upon pod install), based off original values. 根据原始值填写捆绑过滤器(在pod安装中删除)。 If done right, this should replicate the UPDATE error in question. 如果操作正确,则应复制有问题的UPDATE错误。

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.

相关问题 Xcode 7错误:无法从Info.plist中读取CFBundleIdentifier(null) - Xcode 7 error: could not read CFBundleIdentifier from Info.plist (null) 错误:包中的 Info.plist 必须包含 CFBundleIdentifier 键 - Error: The Info.plist in the package must contain the CFBundleIdentifier key 错误:无法从应用程序中提取Info.plist:无法将plist文件“ /Pathof.appfile/Info.plist”解析为XML - Error: Could not extract Info.plist from application: Could not parse plist file '/Pathof.appfile/Info.plist' as XML Swift / Xcode 6-info.plist错误 - Swift / Xcode 6 - info.plist error 有没有办法在Info.plist文件的其他地方引用CFBundleIdentifier? - Is there a way to refer to the CFBundleIdentifier elsewhere in the Info.plist file? 排毒:在 Info.plist 中找不到字段 CFBundleIdentifier - Detox: field CFBundleIdentifier not found inside Info.plist Framework的Info.plist中没有CFBundleIdentifier - Framework did not have a CFBundleIdentifier in its Info.plist 如何确保应用程序 info.plist 包含 CFBundleIdentifier 的值? - How to Ensure the apps info.plist contains a value for CFBundleIdentifier? 无法在XCODE 7中编辑Info.plist(具有读/写权限) - Can't edit Info.plist (read/write permission) in XCODE 7 升级后,XCode在归档时给出“包不包含Info.plist”错误 - After Upgrading, XCode gives “The Package Does Not Contain an Info.plist” error when Archiving
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM