Error when we are publishing to AppStore
See original GitHub issueTell us about the problem
When I run the following command: tns publish ios <Apple ID> <Password> <Mobile Provisioning Profile Identifier> <Code Sign Identity>
an error is thrown:
Exported <ProjectName>.xcarchive to: /Users/nunomorais/Projects/<ProjectName>/platforms/ios/build/device
Project successfully built.
Invalid binary plist. Expected 'bplist' at offset 0.
I’ve already tryed to publish by Sidekick but the error is not clear too.
[18-03-17 16:03:40.989] Publishing failed.
[!] The request could not be completed because:, Error: Publishing failed.
[!] The request could not be completed because:
at CloudPublishService.getiOSError (/Users/nunomorais/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud/lib/services/cloud-publish-service.js:79:21)
at CloudPublishService.<anonymous> (/Users/nunomorais/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud/lib/services/cloud-publish-service.js:103:29)
at Generator.next (<anonymous>)
at fulfilled (/Users/nunomorais/.local/share/.nativescript-cli/extensions/node_modules/nativescript-cloud/lib/services/cloud-publish-service.js:4:58)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
Which platform(s) does your issue occur on?
iOS
Please provide the following version numbers that your issue occurs with:
- CLI: 3.4.3
- Cross-platform modules: 3.4.1
- Runtime(s): 3.4.1
- Plugin(s):
"dependencies": {
"@angular/animations": "~5.2.9",
"@angular/common": "~5.2.9",
"@angular/compiler": "~5.2.9",
"@angular/core": "~5.2.9",
"@angular/forms": "~5.2.9",
"@angular/http": "~5.2.9",
"@angular/platform-browser": "~5.2.9",
"@angular/platform-browser-dynamic": "~5.2.9",
"@angular/router": "~5.2.9",
"moment": "^2.21.0",
"nativescript-angular": "~5.2.0",
"nativescript-background-http": "^3.2.1",
"nativescript-camera": "^4.0.0",
"nativescript-drop-down": "^3.2.1",
"nativescript-imagecropper": "^0.1.2",
"nativescript-imagepicker": "~4.0.1",
"nativescript-iqkeyboardmanager": "^1.3.0",
"nativescript-localstorage": "^1.1.5",
"nativescript-plugin-firebase": "^5.1.8",
"nativescript-pro-ui": "3.4.1",
"nativescript-socket.io": "^0.9.0",
"nativescript-swift-3.0": "^1.0.0",
"nativescript-theme-core": "~1.0.2",
"nativescript-toolbox": "^3.0.1",
"nativescript-uuid": "0.0.1",
"reflect-metadata": "~0.1.12",
"rxjs": "~5.5.7",
"tns-core-modules": "^3.4.1",
"ts-events": "^3.2.0",
"zone.js": "~0.8.20"
},
"devDependencies": {
"@types/node": "^9.4.7",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"lazy": "1.0.11",
"nativescript-dev-less": "0.0.11",
"nativescript-dev-typescript": "~0.6.0",
"typescript": "~2.7.2"
}
Info.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiresFullScreen</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIBackgroundModes</key>
<array>
<string>remote-notification</string>
</array>
</dict>
</plist>
<AppName>.entitlements:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.keystore.access-keychain-keys</key>
<true/>
<key>com.apple.keystore.device</key>
<true/>
</dict>
</plist>
build.xcconfig:
// You can add custom settings here
// for example you can uncomment the following line to force distribution code signing
// CODE_SIGN_IDENTITY = iPhone Distribution
// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
DEVELOPMENT_TEAM = *6*******;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
TARGETED_DEVICE_FAMILY = 1;
// IPHONEOS_DEPLOYMENT_TARGET = 8.0;
CODE_SIGN_ENTITLEMENTS = <AppName>/<AppName>.entitlements
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
App Store submission failed after … | Apple Developer Forums
After the site update, I can no longer submit iOS app for review. Always show this error. An unexpected error was encountered when...
Read more >Issues with uploading to the App Store and how to solve them
Sometimes, you may face an unknown authentication error that makes it difficult for you to upload the iOS binary to App Store Connect....
Read more >V2 Fixing issues during Publishing your app : - App Support
1. Failed to start iOS build · 2. App name you entered is already being used · 3. You must have published answers...
Read more >Publishing file to Apple App Store Failed "Unable to validate ...
There are many reasons for this error——"Unable to validate archive", such as missing APP icon, incorrect profile, doesn't increase the Build ...
Read more >Error while publishing my existing app to the App Store
When I ran into an issue it was an issue with the CFBundleIcons key in the info plist. The code change that fixed...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys,
We’ve investigated the error from
tns publish ios
command and found the problem. The fix is already merged. You can usenpm i -g nativescript@rc
command to install the rc version of nativescript and try the fix on your side.Will be shipped officially with 4.0 next week.