所以我有一个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框架中,因此我不太清楚到底发生了什么。