Framework的Info.plist中没有CFBundleIdentifier [英] Framework did not have a CFBundleIdentifier in its Info.plist

查看:1716
本文介绍了Framework的Info.plist中没有CFBundleIdentifier的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装并运行cocoapods后,我的Bridge.h导入问题找到了预期的目标。



我有:

  #import< TPKeyboardAvoiding / TPKeyboardAvoidingScrollView.h> 
#import< DateTools / DateTools.h>

但它没有用,因为我的Headers文件夹是空的,所以我将这两个文件夹复制到Headers文件夹中并硬编码路径:

  #import< / Users / username / Documents / new_ios / ios-app / Pods / Headers / TPKeyboardAvoiding / TPKeyboardAvoidingScrollView.h> 
#import< /Users/username/Documents/new_ios/ios-app/Pods/Headers/DateTools/DateTools.h>

这个工作和应用程序构建但是当我运行它时它给出了这个错误:无法完成操作。 (LaunchServicesError错误0。)



这是控制台输出:

  6/2/16 4:41:24.961 PM uploadDSYM [3519]:Fabric.framework / run 1.4.0 
6/2/16 4:41:24.981 PM uploadDSYM [3521] ]:Fabric.framework / run 1.4.0
6/2/16 4:41:25.011 PM appleeventsd [51]:SecTaskLoadEntitlements failed error = 22
6/2/16 4:41:25.019 PM sharedfilelistd [251]:SecTaskLoadEntitlements失败错误= 22
6/2/16 4:41:25.093 PM Fabric [257]:Bundle标识符的类型为(null),返回空字符串。
6/2/16 4:41:25.75 PM PM com.apple.CoreSimulator.CoreSimulatorService [331]:Error Domain = LaunchServicesError Code = 0(null)UserInfo = {Error = MissingBundleIdentifier,ErrorDescription = Bundle at path /用户/用户名/库/开发商/ CoreSimulator /设备/ ##### - #### - #### - #### - ########## /数据/资料库/缓存/com.apple.mobile.installd.staging/temp.16rUWf/extracted/AppName.app/Frameworks/TPKeyboardAvoiding.framework在其Info.plist中没有CFBundleIdentifier}

我看到的初始错误看起来很像这样的东西:



编辑3



这个问题出现在我尝试解决之前遇到的问题之后出现的问题:安装pod后的空白Pod标题文件夹

解决方案

对我来说清理构建文件夹工作。在Xcode中,按住 alt 产品 - >清理构建文件夹..



让我知道它是否适合您!


I was having issues with my Bridge.h imports finding their intended targets after a cocoapods install and run.

I had:

#import <TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.h>
#import <DateTools/DateTools.h>

But it didnt work because my Headers folder was empty, so I copied those two folder into the Headers folder and hardcoded the path:

#import </Users/username/Documents/new_ios/ios-app/Pods/Headers/TPKeyboardAvoiding/TPKeyboardAvoidingScrollView.h>
#import </Users/username/Documents/new_ios/ios-app/Pods/Headers/DateTools/DateTools.h>

This worked and the app built but when I ran it it gave this error: The operation couldn’t be completed. (LaunchServicesError error 0.)

Here is the console output:

6/2/16 4:41:24.961 PM uploadDSYM[3519]: Fabric.framework/run 1.4.0
6/2/16 4:41:24.981 PM uploadDSYM[3521]: Fabric.framework/run 1.4.0
6/2/16 4:41:25.011 PM appleeventsd[51]: SecTaskLoadEntitlements failed error=22
6/2/16 4:41:25.019 PM sharedfilelistd[251]: SecTaskLoadEntitlements failed error=22
6/2/16 4:41:25.093 PM Fabric[257]: Bundle indentifier is of type (null), returning empty string.
6/2/16 4:41:25.752 PM com.apple.CoreSimulator.CoreSimulatorService[331]: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=MissingBundleIdentifier, ErrorDescription=Bundle at path /Users/username/Library/Developer/CoreSimulator/Devices/#####-####-####-####-##########/data/Library/Caches/com.apple.mobile.installd.staging/temp.16rUWf/extracted/AppName.app/Frameworks/TPKeyboardAvoiding.framework did not have a CFBundleIdentifier in its Info.plist}

The initiall error that I have looks alot like this stuff: Unable to run app in Simulator: An error was encountered while running (Domain = LaunchServicesError, Code = 0) I tried all the clean builds and the reboots suggested but none worked. Also all the sharekit solutions also did not work because I do not have sharekit.

EDIT 1

My guess is this: Frameworks/TPKeyboardAvoiding.framework did not have a CFBundleIdentifier in its Info.plist} is the real problem and I need to change my info.plist file to find TPKeyboardAvoiding

EDIT 2

My info.plist:

EDIT 3

This question is a problem that arose after I tried to workaround the problem which I ran into before which is described in this question: Empty Pod Headers Folder after `pod install`

解决方案

For me cleaning the build folder worked. In Xcode, hold alt Product -> Clean Build Folder..

Let me know if it works for you!

这篇关于Framework的Info.plist中没有CFBundleIdentifier的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆