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 2019/02/26 02:37:29 UTC
[GitHub] shankari opened a new issue #550: error while building the JWT pod
in cordova; works directly in xcode
shankari opened a new issue #550: error while building the JWT pod in cordova; works directly in xcode
URL: https://github.com/apache/cordova-ios/issues/550
# Bug Report
I seem to have found a regression in building a plugin that includes the `JWT` pod.
I am using the legacy build system so that is not the issue.
I have a plugin that includes the `JWT` pod at version 2.2.0
https://github.com/e-mission/cordova-jwt-auth/blob/master/plugin.xml
This is the most recent non-beta release of that pod
https://github.com/yourkarma/jwt
If I use the CLI to build an app with that plugin, the build fails.
If I open the same failed `xcworkspace` in xcode, it builds.
I am not blocked on this right now since I can use xcode, but it bothers me that the CLI gives different results.
## Problem
### Build through CLI fails
- clone an app that uses the `cordova-jwt-auth` plugin
(e.g. https://github.com/e-mission/e-mission-base)
- build ios using the cordova CLI
- build fails with error
```
/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/JWT/Classes/Supplement/JWTBase64Coder.m:22:9: fatal error: 'Base64/MF_Base64Additions.h' file not found
#import <Base64/MF_Base64Additions.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
....
CompileC /Users/shankari/Library/Developer/Xcode/DerivedData/emTripLog-gesdjyjzkxuymhcrjzidxdezczor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/JWT.build/Objects-normal/x86_64/JWTBase64Coder.o JWT/Classes/Supplement/JWTBase64Coder.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
```
### Build through xcode succeeds
- open the `.workspace` file in xcode
- Product -> Build
- build succeeds
### Build through CLI fails again
Just in case xcode wrote some special settings to the workspace file that made the build work, try to re-build via the CLI. It fails again.
### What is expected to happen?
CLI and xcode builds should be consistent (either both should pass or both should fail)
### What does actually happen?
CLI build fails and xcode build succeeds
## Information
I am fairly sure this worked until pretty recently, but I can't remember exactly when. The JWT pod was added over a year ago.
https://github.com/e-mission/cordova-jwt-auth/blame/master/plugin.xml#L102
Unfortunately, I don't have CI enabled for this project :(
### Command or Code
```
cordova build ios --buildFlag="-UseModernBuildSystem=0"
```
### Environment, Platform, Device
OSX 10.13.6
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
cordova: 8.0.0
ionic: 3.19.1
jwt: 2.2.0
xcode: Version 10.0 (10A255)
I looked at the verbose logs while compiling the broken file in both the CLI and there doesn't appear to be a huge difference between them. In fact, the non-working version seems to have more directories in the include path. I have attached the working and non-working logs to this bug. I generated the working log by using the "Expand all Transcripts" option in the xcode build log and searching for the `JWTBase64Coder.m` file.
```
--- /tmp/non_working_cmd_line 2019-02-25 17:59:42.000000000 -0800
+++ /tmp/working_xcode 2019-02-25 17:59:53.000000000 -0800
...
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/build/emulator/include
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Private
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Private/JWT
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/Base64
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/JWT
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/AppAuth
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/GGLInstanceID
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/GTMOAuth2
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/GTMSessionFetcher
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/GoogleCloudMessaging
--I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/Headers/Public/GoogleToolboxForMac
+-I/Users/shankari/Library/Developer/Xcode/DerivedData/emTripLog-gesdjyjzkxuymhcrjzidxdezczor/Build/Products/Debug-iphonesimulator/JWT/include
+-I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Headers/Private
+-I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Headers/Private/JWT
+-I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Headers/Public
+-I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Headers/Public/Base64
+-I/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Headers/Public/JWT
-I/Users/shankari/Library/Developer/Xcode/DerivedData/emTripLog-gesdjyjzkxuymhcrjzidxdezczor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/JWT.build/DerivedSources/x86_64
-I/Users/shankari/Library/Developer/Xcode/DerivedData/emTripLog-gesdjyjzkxuymhcrjzidxdezczor/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/JWT.build/DerivedSources
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/build/emulator
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/GoogleIPhoneUtilities/Frameworks
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/GoogleInterchangeUtilities/Frameworks/frameworks
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/GoogleSignIn/Frameworks
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/GoogleSymbolUtilities/Frameworks/frameworks
--F/Users/shankari/e-mission/e-mission-base/platforms/ios/Pods/Pods/GoogleUtilities/Frameworks/frameworks
+-F/Users/shankari/Library/Developer/Xcode/DerivedData/emTripLog-gesdjyjzkxuymhcrjzidxdezczor/Build/Products/Debug-iphonesimulator/JWT
-include
```
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above
[non_working_cmd_line.gz](https://github.com/apache/cordova-ios/files/2903514/non_working_cmd_line.gz)
[working_xcode.gz](https://github.com/apache/cordova-ios/files/2903515/working_xcode.gz)
----------------------------------------------------------------
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