iOS Framework目标构建,但在构建主应用程序目标时存在构建问题

时间:2014-07-08 20:47:21

标签: ios frameworks swift

所以我有一个iOS / Swift应用程序,我一直在使用一个名为GDDiscoveryShared的内部框架。我可以很好地构建框架目标,但是当我尝试构建主应用程序目标时,突然之间,GDDiscoveryShared框架的XCode生成的头开始出现问题,无法在GDDiscoveryShared框架中找到一些ObjC类。以下是构建错误:

<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:62: cannot find protocol declaration for 'GDObjectMappingProtocol'
<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:82: expected a type
<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:88: cannot find protocol declaration for 'GDObjectMappingProtocol'
<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:92: expected a type
<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:97: cannot find protocol declaration for 'GDObjectMappingProtocol'
<unknown>:0: error: /Users/jneugass/Library/Developer/Xcode/DerivedData/GDDiscovery-bosotkikojgkrbgtkkkbwmokbbvr/Build/Products/Debug-iphonesimulator/GDDiscoveryShared.framework/Headers/GDDiscoveryShared-Swift.h:103: expected a type
<unknown>:0: error: could not build Objective-C module 'GDDiscoveryShared'
<unknown>:0: error: could not build Objective-C module 'GDDiscoveryShared'

GDObjectMappingProtocol绝对位于GDDiscoveryShared框架中,因此我不太清楚到底发生了什么。

0 个答案:

没有答案