ios – Framework在其Info.plist中没有CFBundleIdentifier

我在Bridge.h中遇到问题,在安装和运行可可可可头后,会发现其目标是预期的.

我有

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

但是它没有工作,因为我的头文件夹是空的,所以我将这两个文件夹复制到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 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}

我的初始化错误,我看起来很像这样的东西:Unable to run app in Simulator: An error was encountered while running (Domain = LaunchServicesError,Code = 0)我尝试所有的干净的建立和重新启动建议,但没有工作.此外,所有的sharekit解决方案也没有工作,因为我没有共享套件.

编辑1

我的猜测是这样的:框架/ TPKeyboardAvoiding.framework在其Info.plist中没有CFBundleIdentifier}是真正的问题,我需要更改我的info.plist文件以查找TPKeyboardAvoiding

编辑2

我的信息:

编辑3

这个问题是在我试图解决我遇到的问题之前出现的一个问题,在这个问题之前描述了这个问题:Empty Pod Headers Folder after `pod install`

解决方法

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

让我知道如果它适用于你!

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...