You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/10 22:04:44 UTC

[GitHub] jpgilchrist opened a new issue #394: cordova build ios fails with linker issues (works pefectly in Xcode UI)

jpgilchrist opened a new issue #394: cordova build ios fails with linker issues (works pefectly in Xcode UI)
URL: https://github.com/apache/cordova-ios/issues/394
 
 
   I have been debugging and investigating this issue for almost three days. I am at my wits end and hopefully I have enough information now so you can give me an appropriate answer or we can identify an actual. 
   
   First and foremost, I started with SO to do a bunch of research before I came here and posted my own question: https://stackoverflow.com/questions/51772407/cordova-cant-build-from-cli-but-build-from-xcode-xcworkspace-works-perfectly 
   
   Here's what I'm finding:
   
   `cordova build ios` fails with the following
   
   ```
   /Users/jpgilchrist/Development/github/soschat/soschat-mobile-3.0/VeociSTAGE/platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetwork.m:23:9: fatal error: 
         'GoogleToolboxForMac/GTMNSData+zlib.h' file not found
   #import <GoogleToolboxForMac/GTMNSData+zlib.h>
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   ```
   
   ```
   ** BUILD FAILED **
   
   
   The following build commands failed:
   	CompileC /Users/jpgilchrist/Library/Developer/Xcode/DerivedData/VeociSTAGE-awzedsneagcsyzbvjuozwzgwilon/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseCore.build/Objects-normal/x86_64/FIRNetwork.o FirebaseCore/Firebase/Core/FIRNetwork.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
   ```
   
   However, if you actually open the .xcworkspace and then build/run from Xcode it works perfectly! This got me to thinking and a started down a deep rabbit hole. Eventually I tried `xcodebuild -workspace VeociSTAGE.xcworkspace -scheme VeociSTAGE` and it worked there as well!
   
   This started me down a very deep rabbit hole learning way more about the innards of the cordova build process then I really needed to know (but, hey knowledge is knowledge and I'm happy I know it now). 
   
   I found `platforms/ios/cordova/Api.js` and eventually the `xcodebuildArgs` and I deduced that a custom xcconfig is being used and I have no idea what in the xcconfig is causing it, but running it with the xcconfig causes my issues. Without it builds.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org