iOS-Framework
iOS-Framework copied to clipboard
Missing cache file warnings for the framework built in Xcode 7
Hi team,
I'm working on an iOS framework which follows this pattern, it worked well before Xcode 7, but recently after I upgraded to Xcode 7 to build the framework then used it in the test app there were lot of build warnings during the 'Generate dSYM' process, the warning messages are something like these:
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: /var/folders/fv/y57n2j752q5042nmfdzk31dr00007h/C/org.llvm.clang.admin/ModuleCache/1CYUW6ZKHCRG0/Foundation-A3SOD99KJ0S9.pcm: No such file or directory
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: /var/folders/fv/y57n2j752q5042nmfdzk31dr00007h/C/org.llvm.clang.admin/ModuleCache/1CYUW6ZKHCRG0/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: /var/folders/fv/y57n2j752q5042nmfdzk31dr00007h/C/org.llvm.clang.admin/ModuleCache/1CYUW6ZKHCRG0/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: /var/folders/fv/y57n2j752q5042nmfdzk31dr00007h/C/org.llvm.clang.admin/ModuleCache/1CYUW6ZKHCRG0/ObjectiveC-2CD0WTQVXITO7.pcm: No object file for requested architecture
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: Could not resolve external type c:objc(cs)NSMutableDictionary
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: Could not resolve external type c:objc(cs)NSMutableDictionary
while processing /Users/James/workspace/ios/APMMobile/ios/test/TestAppUtility/FoglightAPM.framework/FoglightAPM(FoglightOrderedDictionary.o):
warning: Could not resolve external type c:objc(cs)NSMutableArray
...
it seems Xcode want to lookup some cache files on the build server but they can't be found, to reproduce this issue:
- Build the framework on one Mac then transfer it to another Mac which has the Test App(this is very important because the issue won't be appear if you build the framework on the same Mac).
- In the Build Settings of the test app, change the value of 'Debug Information Format' to 'DWARF with dSYM File' for the Debug configuration, then launch the app.
I'm wondering if any other people who also encountered it.
Thanks, James
I am also encountering this and looking for a solution.
@gruffins https://github.com/radialpoint/SupportKit/issues/53 seems resolved this issue, but all of the debug symbols in the Framework will be stripped.