-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error while building the AppAuth pod in cordova; works directly in xcode #550
Comments
I have also attached the complete verbose logs with output before and after the failure. |
Note also that cordova-ios is still at |
ok wait a bit, now that I see the diffs more carefully, the path is subtly different between the cli and xcode. There is an extra
and
This implies that none of the pods should work, maybe the build fails after the first error? |
This should resolve at least one of the issues with building from the command line. However building from the CLI still fails due to apache/cordova-ios#550
I ran into a similar issue with a different pod (AppAuth) while trying to upgrade to the latest version of cordova and iOS (e-mission/e-mission-phone#804). with cordova-ios@6.1.0, everything works, as you can see from the CI However, with the upgrade to cordova-ios@6.2.0, the build fails with the error
As you can see from the Pull Request CI |
Changing this from |
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.0https://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
cordova-jwt-auth
plugin(e.g. https://github.com/e-mission/e-mission-base)
Build through xcode succeeds
.workspace
file in xcodeBuild 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
Environment, Platform, Device
OSX 10.13.6
Version information
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.Checklist
non_working_cmd_line.gz
working_xcode.gz
The text was updated successfully, but these errors were encountered: