NativeScript: Xcode 14 "xcodebuild failed with exit code 65"
Issue Description
Hi,
I have this issue during the IOS build, it seams that we need to add an output file for the PreLink and PostBuild ?
Reproduction
No response
Relevant log output (if applicable)
Command SwiftCompile failed with a nonzero exit code
note: Using codesigning identity override:
note: Building targets in dependency order
warning: Run script build phase 'Create Symlinks to Header Folders' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'MDFInternationalization' from project 'Pods')
note: Run script build phase 'NativeScript PreBuild' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'XXX' from project 'XXX')
note: Run script build phase 'NativeScript PreLink' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'XXX' from project 'XXX')
note: Run script build phase 'NativeScript PostBuild' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'XXX' from project 'XXX')
** BUILD FAILED **
Unable to apply changes on device: B6F715DF-C67C-4FC5-A233-7F8DE00. Error is: Command xcodebuild failed with exit code 65.
Environment
<!-- COPY START -->
```yaml
OS: macOS 12.6
CPU: (10) arm64 Apple M1 Pro
Shell: /bin/zsh
node: 16.16.0
npm: 8.17.0
nativescript: 8.3.3
# android
java: 18.0.1
ndk: Not Found
apis: 23, 30, 31, 32, 33
build_tools: 31.0.0, 33.0.0
system_images:
- android-33 | Google APIs ARM 64 v8a
# ios
xcode: 14.0/14A309
cocoapods: 1.11.3
python: 3.9.12
python3: 3.9.12
ruby: 2.6.8
platforms:
- DriverKit 21.4
- iOS 16.0
- macOS 12.3
- tvOS 16.0
- watchOS 9.0
Dependencies
"dependencies": {
"@kefah/nativescript-uuid": "^1.0.1",
"@nativescript-community/fonticon": "^3.0.0",
"@nativescript-community/ui-canvas": "^4.4.4",
"@nativescript-community/ui-collectionview": "^4.0.57",
"@nativescript-community/ui-material-bottom-navigation": "^7.0.25",
"@nativescript-community/ui-material-bottomnavigationbar": "^7.0.25",
"@nativescript-community/universal-links": "^3.0.0",
"@nativescript/appversion": "^2.0.0",
"@nativescript/background-http": "^6.0.0",
"@nativescript/core": "^8.3.1",
"@nativescript/datetimepicker": "^2.1.11",
"@nativescript/firebase-auth": "^2.2.9",
"@nativescript/firebase-core": "^2.2.9",
"@nativescript/firebase-crashlytics": "^2.2.9",
"@nativescript/firebase-messaging": "^2.2.9",
"@nativescript/geolocation": "^8.0.2",
"@nativescript/imagepicker": "^1.0.7",
"@nativescript/iqkeyboardmanager": "^2.0.0",
"@nativescript/local-notifications": "^6.0.0",
"@nativescript/localize": "^5.0.4",
"@nativescript/secure-storage": "^3.0.0",
"@nativescript/theme": "^3.0.2",
"@nstudio/nativescript-cardview": "^2.0.1",
"@nstudio/nativescript-fancyalert": "^4.0.1",
"@nstudio/nativescript-filterable-listpicker": "^3.0.1",
"@nstudio/nativescript-loading-indicator": "^4.1.2",
"@triniwiz/nativescript-stripe": "^8.0.3",
"@triniwiz/nativescript-toasty": "^4.1.3",
"@types/google-libphonenumber": "^7.4.23",
"base-64": "^1.0.0",
"build-url-ts": "^6.1.3",
"crypto-js": "^4.1.1",
"email-validator": "^2.0.4",
"google-libphonenumber": "^3.2.29",
"moment": "^2.29.4",
"nativescript": "^8.2.3",
"nativescript-feedback": "^2.0.0",
"nativescript-intl": "^4.0.2",
"nativescript-modal-datetimepicker": "^2.1.5",
"nativescript-phone": "^3.0.3",
"nativescript-ui-autocomplete": "^8.0.1",
"nativescript-ui-listview": "^10.2.7",
"nativescript-ui-sidedrawer": "^10.0.2",
"rxjs": "^7.5.6",
"url-parse": "^1.5.10",
"utf8": "^3.0.0",
"uuid": "^8.3.2"
},
"devDependencies": {
"@nativescript/android": "8.3.1",
"@nativescript/ios": "8.3.3",
"@nativescript/types": "~8.3.1",
"@nativescript/webpack": "~5.0.6",
"typescript": "~4.5.5"
}
### Please accept these terms
- [X] I have searched the [existing issues](https://github.com/NativeScript/nativescript-cli/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before
- [X] This is a bug report
- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- iOS build broken, see if suggestion from GitHub helps. https://github.com/NativeScript/NativeScript/issues/10034 — committed to fieldkit/mobile by jlewallen 8 months ago
- iOS build broken, see if suggestion from GitHub helps. https://github.com/NativeScript/NativeScript/issues/10034 — committed to fieldkit/mobile by jlewallen 8 months ago
The main issue is the signing issue (the rest are notes/warnings and not causing the build to fail). The workaround is to put the following inside
App_Resources/iOS/Podfile(Replacing
<TEAM_ID>with your actual team id).@vicmasa downgrading won’t help most likely, it’s a plugin issue, more specifically a GoogleMaps cocoapod issue - I can’t look into the details for it right now, but it might just need an updated pod version (in the plugin). I suggest opening an issue in the plugins repo, or commenting on one if there’s already one
The following podfile setup did the job:
This may not be the apt solution but a reasonable work-around for the given problem