NativeScript: iOS Run on Device -> ARCHIVE FAILED
Hey guys, I’m receiving the below error, and have pasted my logs too. Please advise what I may be doing wrong. As far as I can see, my certs are correct.
When doing the build, it eventually fails with an ARCHIVE FAILED message. See below:
Device Console
[18-07-11 10:26:32.836] (CLI) 0x00000018 <uint32>=0x00000001
[18-07-11 10:26:32.836] (CLI) 0x00000019 <uint32>=0x00000001
[18-07-11 10:26:32.836] (CLI) 0x0000001A <uint32>=0x00000001
[18-07-11 10:26:32.836] (CLI) Building project ...
[18-07-11 10:26:35.921] (CLI) ▸ Check Dependencies
[18-07-11 10:26:35.921] (CLI) ▸ Processing Info.plist
[18-07-11 10:26:35.921] (CLI) ▸ Compiling MMNumberKeyboard-dummy.m
[18-07-11 10:26:39.208] (CLI) ▸ Check Dependencies
[18-07-11 10:26:39.208] (CLI) ▸ Processing Info.plist
[18-07-11 10:26:39.208] (CLI) ▸ Compiling MMNumberKeyboard-dummy.m
[18-07-11 10:26:40.312] (CLI) ▸ Compiling MMNumberKeyboard.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MMNumberKeyboard_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MMNumberKeyboard-dummy.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MMNumberKeyboard.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MMNumberKeyboard_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Linking MMNumberKeyboard
[18-07-11 10:26:42.215] (CLI) ▸ Linking MMNumberKeyboard
[18-07-11 10:26:42.215] (CLI) ▸ Copying MMNumberKeyboard-umbrella.h
[18-07-11 10:26:42.215] (CLI) ▸ Copying MMNumberKeyboard.h
[18-07-11 10:26:42.215] (CLI) ▸ Touching MMNumberKeyboard.framework
[18-07-11 10:26:42.215] (CLI) ▸ Check Dependencies
[18-07-11 10:26:42.215] (CLI) ▸ Processing ResourceBundle-MNFloatingActionButton-Info.plist
[18-07-11 10:26:42.215] (CLI) ▸ Touching MNFloatingActionButton.bundle
[18-07-11 10:26:42.215] (CLI) ▸ Check Dependencies
[18-07-11 10:26:42.215] (CLI) ▸ Processing Info.plist
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton-dummy.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton-dummy.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling MNFloatingActionButton_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Linking MNFloatingActionButton
[18-07-11 10:26:42.215] (CLI) ▸ Linking MNFloatingActionButton
[18-07-11 10:26:42.215] (CLI) ▸ Copying /tmp/builds/_/91c8f8f263bdd7925bdb662b2cfa010fe5ab402e/4.1.2/JacsPack/platforms/ios/build/archive/Debug-iphoneos/MNFloatingActionButton/MNFloatingActionButton.bundle
[18-07-11 10:26:42.215] (CLI) ▸ Copying MNFloatingActionButton-umbrella.h
[18-07-11 10:26:42.215] (CLI) ▸ Copying MNFloatingActionButton.h
[18-07-11 10:26:42.215] (CLI) ▸ Touching MNFloatingActionButton.framework
[18-07-11 10:26:42.215] (CLI) ▸ Building Pods/Pods-JacsPack [Debug]
[18-07-11 10:26:42.215] (CLI) ▸ Check Dependencies
[18-07-11 10:26:42.215] (CLI) ▸ Processing Info.plist
[18-07-11 10:26:42.215] (CLI) ▸ Compiling Pods_JacsPack_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Compiling Pods-JacsPack-dummy.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling Pods-JacsPack-dummy.m
[18-07-11 10:26:42.215] (CLI) ▸ Compiling Pods_JacsPack_vers.c
[18-07-11 10:26:42.215] (CLI) ▸ Copying Pods-JacsPack-umbrella.h
[18-07-11 10:26:42.215] (CLI) ▸ Touching Pods_JacsPack.framework
[18-07-11 10:26:42.215] (CLI) ▸ Check Dependencies
[18-07-11 10:26:42.215] (CLI) Check Pods Manifest.lock'
[18-07-11 10:26:42.215] (CLI) ▸ Running script 'NativeScript PreBuild'
[18-07-11 10:26:52.784] (CLI) ▸ Precompiling JacsPack/JacsPack-Prefix.pch
[18-07-11 10:26:54.504] (CLI) ▸ Precompiling JacsPack/JacsPack-Prefix.pch
[18-07-11 10:26:54.504] (CLI) ▸ Compiling main.m
[18-07-11 10:26:54.504] (CLI) ▸ Compiling main.m
[18-07-11 10:26:54.504] (CLI) ▸ Linking JacsPack
[18-07-11 10:26:54.504] (CLI) ▸ Linking JacsPack
[18-07-11 10:26:55.415] (CLI) ▸ Running script 'NativeScript PreLink'
[18-07-11 10:26:55.415] (CLI) ▸ Copying InfoPlist.strings
[18-07-11 10:27:02.055] (CLI) ▸ Compiling LaunchScreen.storyboard
[18-07-11 10:27:02.055] (CLI) ** ARCHIVE FAILED **
[18-07-11 10:27:02.055] (CLI) The following build commands failed:
[18-07-11 10:27:02.055] (CLI) \tCompileAssetCatalog DerivedData/JacsPack/Build/Intermediates.noindex/ArchiveIntermediates/JacsPack/InstallationBuildProductsLocation/Applications/JacsPack.app JacsPack/Resources/Assets.xcassets
[18-07-11 10:27:02.055] (CLI) (1 failure)
[18-07-11 10:27:04.583] (CLI) ** ARCHIVE FAILED **
[18-07-11 10:27:04.583] (CLI) The following build commands failed:
[18-07-11 10:27:04.583] (CLI) \tCompileAssetCatalog DerivedData/JacsPack/Build/Intermediates.noindex/ArchiveIntermediates/JacsPack/InstallationBuildProductsLocation/Applications/JacsPack.app JacsPack/Resources/Assets.xcassets
[18-07-11 10:27:04.583] (CLI) (1 failure)
[18-07-11 10:27:15.215] (CLI) Unable to apply changes on device: e7abe2b6b8f59f1e8974e3088b82ede981d5d99c. Error is: Build failed..
[18-07-11 10:27:15.222] Error detected during LiveSync on e7abe2b6b8f59f1e8974e3088b82ede981d5d99c for /Users/nickdelahunt/Documents/OneDrive/wigital/Mobile apps/Jacs Pack. Error: Build failed.
[18-07-11 10:27:15.245] (CLI) Executing after-watch hook from /Users/nickdelahunt/Documents/OneDrive/wigital/Mobile apps/Jacs Pack/hooks/after-watch/nativescript-dev-webpack.js
[18-07-11 10:27:15.249] Stopped LiveSync on e7abe2b6b8f59f1e8974e3088b82ede981d5d99c for /Users/nickdelahunt/Documents/OneDrive/wigital/Mobile apps/Jacs Pack.
[18-07-11 10:27:15.250] Couldn't enable debugging for e7abe2b6b8f59f1e8974e3088b82ede981d5d99c, Error: Couldn't enable debugging for e7abe2b6b8f59f1e8974e3088b82ede981d5d99c
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:125:28)
at Errors.failWithoutHelp (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:135:21)
at LiveSyncService.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/services/livesync/livesync-service.js:225:30)
at Generator.next (<anonymous>)
at /usr/local/lib/node_modules/nativescript/lib/services/livesync/livesync-service.js:13:71
at new Promise (<anonymous>)
at __awaiter (/usr/local/lib/node_modules/nativescript/lib/services/livesync/livesync-service.js:9:12)
at LiveSyncService.enableDebuggingCoreWithoutWaitingCurrentAction (/usr/local/lib/node_modules/nativescript/lib/services/livesync/livesync-service.js:222:16)
at LiveSyncService.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/services/livesync/livesync-service.js:262:25)
OUTPUT 11
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 41 (4 by maintainers)
@ggarabedian @LucasBBR Worked perfectly! Images need to be square - not necessarily 1024 x 1024 from what I see, but square definitely!
@delanick, we checked our cloud logs and it appears that the certificate used to sign the app is revoked or expired. Can you please tell me if you are using manually created certificate (through the Apple Developer Center) or you are using the Code Signing Assistance? Please have in mind that the latter option will create certificate and mobile provision valid only for several days.
Additionally, I would like to note that we are actively working on making the errors in the console more descriptive (not just Archive Failed).