Skip to content
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

Disabling ModernBuildSystem automatically for iOS ? #41

Open
ptbrowne opened this issue Oct 31, 2018 · 1 comment
Open

Disabling ModernBuildSystem automatically for iOS ? #41

ptbrowne opened this issue Oct 31, 2018 · 1 comment

Comments

@ptbrowne
Copy link

After updating XCode to version 10, I have the error:

[11:14:51]: ▸ error: archive not found at path '/Users/pbrowne/code/cozy/banks/src/targets/mobile/platforms/ios/Cozy Banks.xcarchive'
[11:14:51]: ▸ ** EXPORT FAILED **
[11:14:51]: ▸ Error: Error code 65 for command: xcodebuild with args: -exportArchive,-archivePath,Cozy Banks.xcarchive,-exportOptionsPlist,/Users/pbrowne/code/cozy/banks/src/targets/mobile/platforms/ios/exportOptions.plist,-exportPath,/Users/pbrowne/code/cozy/banks/src/targets/mobile/platforms/ios/build/device
+------------------------------------+---------------------------------------------------+
|                                      Lane Context                                      |
+------------------------------------+---------------------------------------------------+
| PLATFORM_NAME                      | ios                                               |
| LANE_NAME                          | ios deploy                                        |
| SIGH_PROFILE_TYPE                  | app-store                                         |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"io.cozy.banks"=>"match AppStore io.cozy.banks"} |
+------------------------------------+---------------------------------------------------+
[11:14:51]: Exit status of command 'cordova compile ios --release --device --packageType=app-store --developmentTeam=3AKXFMV43J --provisioningProfile=82690009-5193-4c62-bf04-caead89c43de -- ' was 1 instead of 0.
Building project: /Users/pbrowne/code/cozy/banks/src/targets/mobile/platforms/ios/Cozy Banks.xcworkspace
        Configuration: Release
        Platform: device
User defaults from command line:
    IDEArchivePathOverride = /Users/pbrowne/code/cozy/banks/src/targets/mobile/platforms/ios/Cozy Banks.xcarchive

After adding the build flag, it works.

    cordova(platform: 'ios', build_flag: ['-UseModernBuildSystem=0'])

See https://stackoverflow.com/questions/52281848/cordova-build-ios-error-archive-not-found-at-path-path-to-myapp-xcarchive and apache/cordova-ios#407.

Maybe this flag should be automatically set since cordova-ios does not support yet the new build system ?

@blackholegalaxy
Copy link
Contributor

I think it's better to keep this manual at the moment. Since cordova ios should support the new build system in a near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants