NativeScript: NS 7 Xcode 12.3 error code 65
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 7.0.11
- Cross-platform modules: 7.0.12
- Android Runtime: 7.0.1
- iOS Runtime: 7.0.6
- XCode Version: 12
- Plugin(s): nativescript-ui-dataform, nativescript-ui-autocomplete, nativescript-ui-sidedrawer
Describe the bug
When running ns build ios --clean --release --env.production
I’m getting this output
Copying template files...
Platform ios successfully added. v7.0.6
Your ANDROID_HOME environment variable is set and points to correct directory.
WARNING: WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
The Android SDK is installed.
WARNING: Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.
Run `$ sdkmanager` to manage your Android SDK versions.
WARNING: You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=30'.
Run `$ sdkmanager` from your command-line to install required `Android Build Tools`. In case you already have them installed, make sure `ANDROID_HOME` environment variable is set correctly.
WARNING: Javac version 15.0.1 is not supported. You have to install at least 1.8.0 and below 13.0.0.
You will not be able to build your projects for Android.
To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as
described in http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-os-x.html#system-requirements
The Java Development Kit (JDK) is installed and is configured properly.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ The Android SDK is installed.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✖ WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
✖ Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.
Run `$ sdkmanager` to manage your Android SDK versions.
✖ You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=30'.
Run `$ sdkmanager` from your command-line to install required `Android Build Tools`. In case you already have them installed, make sure `ANDROID_HOME` environment variable is set correctly.
✖ Javac version 15.0.1 is not supported. You have to install at least 1.8.0 and below 13.0.0.
You will not be able to build your projects for Android.
To be able to build for Android, verify that you have installed The Java Development Kit (JDK) and configured it according to system requirements as
described in http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-os-x.html#system-requirements
Exception: Your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options:
Run $ tns preview command to enjoy NativeScript without any local setup.
Run $ tns setup command to run the setup script to try to automatically configure your environment for local builds.
Verify that your environment is configured according to the system requirements described at http://docs.nativescript.org/setup/ns-cli-setup/ns-setup-os-x.html#system-requirements.
Preparing project...
Bundling application for entryPath ./main...
[BABEL] Note: The code generator has deoptimised the styling of /Users/admin/builds/iG-76FSU/0/vulksoft/mobile-app/node_modules/@vue/devtools/build/backend.js as it exceeds the max of 500KB.
Hash: 4ee03f71c38534940b85
Version: webpack 4.44.2
Time: 283431ms
Built at: 12/14/2020 12:41:31 AM
Asset Size Chunks Chunk Names
App_Resources/Android/src/main/res/drawable-hdpi/background.png 2.99 KiB [emitted]
App_Resources/Android/src/main/res/drawable-hdpi/icon.png 7.97 KiB [emitted]
App_Resources/Android/src/main/res/drawable-hdpi/logo.png 128 KiB [emitted]
App_Resources/Android/src/main/res/drawable-ldpi/background.png 1.12 KiB [emitted]
App_Resources/Android/src/main/res/drawable-ldpi/icon.png 2.62 KiB [emitted]
App_Resources/Android/src/main/res/drawable-ldpi/logo.png 34.4 KiB [emitted]
App_Resources/Android/src/main/res/drawable-mdpi/background.png 1.65 KiB [emitted]
App_Resources/Android/src/main/res/drawable-mdpi/icon.png 4.08 KiB [emitted]
App_Resources/Android/src/main/res/drawable-mdpi/logo.png 61.6 KiB [emitted]
App_Resources/Android/src/main/res/drawable-nodpi/ic_menu.png 253 bytes [emitted]
App_Resources/Android/src/main/res/drawable-xhdpi/background.png 4.71 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xhdpi/icon.png 12.5 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xhdpi/logo.png 201 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxhdpi/background.png 9.29 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxhdpi/icon.png 22.4 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxhdpi/logo.png 353 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png 15.4 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png 77.7 KiB [emitted]
App_Resources/Android/src/main/res/drawable-xxxhdpi/logo.png 353 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-1024.png 1.74 MiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20.png 1.05 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@2x.png 3.11 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-20@3x.png 5.87 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png 1.9 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@2x.png 5.55 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29@3x.png 10.8 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png 3.11 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@2x.png 9.42 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40@3x.png 17.4 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@2x.png 17.4 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-60@3x.png 30.4 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png 8.71 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76@2x.png 24.1 KiB [emitted]
App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-83.5@2x.png 27.4 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-1125h.png 1.32 MiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-568h@2x.png 142 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-667h@2x.png 175 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-736h@3x.png 339 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-X.png 1.38 MiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XR.png 203 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape-XS-Max.png 352 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape.png 178 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@2x.png 451 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Landscape@3x.png 347 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XR.png 200 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait-XS-Max.png 343 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait.png 178 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default-Portrait@2x.png 447 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default.png 53.3 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchImage.launchimage/Default@2x.png 141 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill.png 4.71 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@2x.png 15.4 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset/LaunchScreen-AspectFill@3x.png 32.1 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center.png 69.3 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@2x.png 178 KiB [emitted]
App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset/LaunchScreen-Center@3x.png 304 KiB [emitted]
App_Resources/iOS/ic_menu.png 253 bytes [emitted]
assets/audio/tap.mp3 3.25 KiB [emitted]
assets/fontawesome/all.min.css 55.2 KiB [emitted]
assets/images/add.png 1.2 KiB [emitted]
assets/images/alert-intrusion-locked.png 64.8 KiB [emitted]
assets/images/alert-intrusion.png 68.8 KiB [emitted]
assets/images/alert-lockdown.png 63.7 KiB [emitted]
assets/images/background-homepage.png 196 KiB [emitted]
assets/images/background-login.jpg 15.6 KiB [emitted]
assets/images/background-register.jpg 3.71 KiB [emitted]
assets/images/checkup.jpg 87.4 KiB [emitted]
assets/images/email.png 3.01 KiB [emitted]
assets/images/eye.png 2.42 KiB [emitted]
assets/images/history-alert.png 77.1 KiB [emitted]
assets/images/infos.png 2.39 KiB [emitted]
assets/images/list-groups.png 16.4 KiB [emitted]
assets/images/list-users.png 4.18 KiB [emitted]
assets/images/logout.jpg 59.4 KiB [emitted]
assets/images/management.jpg 145 KiB [emitted]
assets/images/password.png 2.48 KiB [emitted]
assets/images/pen.png 1.71 KiB [emitted]
assets/images/receipt.png 2.45 KiB [emitted]
assets/images/settings.jpg 85.4 KiB [emitted]
assets/images/subscription.png 2.9 KiB [emitted]
assets/images/tos.jpg 54.2 KiB [emitted]
assets/images/user-account.png 15 KiB [emitted]
assets/images/warning.png 18.4 KiB [emitted]
assets/scss/app-common.scss 2.5 KiB [emitted]
assets/scss/app-variables.scss 11.8 KiB [emitted]
assets/scss/bootstrap.scss 7.88 KiB [emitted]
bundle.js 803 KiB bundle [emitted] bundle
fonts/fa-regular-400.ttf 33.3 KiB [emitted]
fonts/fa-solid-900.ttf 199 KiB [emitted]
package.json 3.66 KiB [emitted]
runtime.js 1.86 KiB runtime [emitted] runtime
tns_modules/@nativescript/core/inspector_modules.js 338 bytes tns_modules/@nativescript/core/inspector_modules [emitted] tns_modules/@nativescript/core/inspector_modules
vendor.js 3.05 MiB vendor [emitted] vendor
vendor.js.LICENSE.txt 27.7 KiB [emitted]
Entrypoint bundle = runtime.js vendor.js bundle.js
Entrypoint tns_modules/@nativescript/core/inspector_modules = runtime.js vendor.js tns_modules/@nativescript/core/inspector_modules.js
[./ sync recursive (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$] . sync (?<!\bApp_Resources\b.*)(?<!\.\/\btests\b\/.*?)\.(xml|css|js|(?<!\.d\.)ts|(?<!\b_[\w-]*\.)scss)$ 5.22 KiB {bundle} [built]
[./core/infrastructure/navigation/navigation.service.ts] 3.03 KiB {bundle} [built]
[./core/infrastructure/navigation/routes.ts] 9.76 KiB {bundle} [built]
[./directives/index.ts] 287 bytes {bundle} [built]
[./globals/app-events/app-events.ts] 1.24 KiB {bundle} [built]
[./globals/dependencies/locator.ts] 5.2 KiB {bundle} [built]
[./main.ts] 2.6 KiB {bundle} [built]
[./plugins/checkbox.ts] 209 bytes {bundle} [built]
[./plugins/datetimepicker.ts] 124 bytes {bundle} [built]
[./plugins/fonticon.ts] 287 bytes {bundle} [built]
[./plugins/i18n.ts] 187 bytes {bundle} [built]
[./plugins/ripple.ts] 134 bytes {bundle} [built]
[./plugins/tracing.ts] 563 bytes {bundle} [built]
[./plugins/vueProperty.ts] 211 bytes {bundle} [built]
[./plugins/vueshadow.ts] 114 bytes {bundle} [built]
+ 1869 hidden modules
Webpack compilation complete.
Installing pods...
Analyzing dependencies
Pre-downloading: `Toast-Swift` from `https://github.com/triniwiz/Toast-Swift.git`
Downloading dependencies
Installing BEMCheckBox (1.4.1)
Installing DBCameraButton (1.0.0)
Installing DKCamera (1.6.7)
Installing DKImagePickerController (4.3.2)
Installing DKPhotoGallery (0.0.17)
Installing IQMediaPickerController (2.0.0)
Installing MBProgressHUD (1.2.0)
Installing MDFInternationalization (2.0.0)
Installing MaterialComponents (94.5.0)
Installing SCSiriWaveformView (1.1.1)
Installing SDWebImage (5.10.0)
Installing Socket.IO-Client-Swift (12.1.3)
Installing Starscream (2.1.1)
Installing SwiftyGif (5.3.0)
Installing Toast-Swift (5.0.1)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use `myapp.xcworkspace` for this project from now on.
Pod installation complete! There are 10 dependencies from the Podfile and 15 total pods installed.
Updating runtime package.json with configuration values...
Project successfully prepared (ios)
Building project...
Xcode build...
note: Using new build system
note: Building targets in parallel
note: Using codesigning identity override:
note: Planning build
note: Constructing build description
error: Building for iOS Simulator, but the linked and embedded framework 'TNSDataForm.framework' was built for iOS + iOS Simulator. (in target 'myapp' from project 'myapp')
error: Building for iOS Simulator, but the linked and embedded framework 'TNSAutoComplete.framework' was built for iOS + iOS Simulator. (in target 'myapp' from project 'myapp')
error: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'myapp' from project 'myapp')
error: Building for iOS Simulator, but the linked and embedded framework 'TNSCore.framework' was built for iOS + iOS Simulator. (in target 'myapp' from project 'myapp')
error: Building for iOS Simulator, but the linked and embedded framework 'TNSSideDrawer.framework' was built for iOS + iOS Simulator. (in target 'myapp' from project 'myapp')
warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'IQMediaPickerController' from project 'Pods')
** BUILD FAILED **
Command xcodebuild failed with exit code 65
Running after_script
00:00
Uploading artifacts for failed job
00:00
ERROR: Job failed: exit status 1
To Reproduce Create a new project, add these plugins and try to compile
Expected behavior I expect the project to compile without any errors
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
Thanks @AgustinV08.
Fully working with Xcode Version 12.3 (12C33).
@NathanWalker open this PR in the ios runtime repo
https://github.com/NativeScript/ns-v8ios-runtime/pull/92
VALIDATE_WORKSPACE = YESIf you include the above to the build.xcconfig file in the App_Resources/IOS folder, your app should build as normal. Some warnings may popup but at least the app builds
@bradmartin The PR I linked allows builds to succeed. I’m not sure if there are side effects, but it seems to work fine for me. It’s just that simple one-line change.
Anyone not able to wait on the PR can just add that one line to their own project’s xcconfig, and it should be good to go.
Looks like Apple replied on that forum link you dropped and mentions rebuilding things as XCFrameworks, which is outside my knowledge but assuming that means we need to rebuild some things in NS with that format. https://developer.apple.com/forums/thread/669411?answerId=652663022#652663022
@ragu89 - this is a bug introduced with xcode 12.3 that is impacting a lot of iOS projects, not just NativeScript (see this thread on apple forums). Downgrading to 12.2 is the short term fix or doing what @facetious has suggested in this thread.
I am also seeing this issue new with 12.3. The results from this thread suggest that either: a) downgrade to 12.2 (accessed via https://developer.apple.com/download/more/ ) b)
strip_dynamic_framework_architectures.shneeds to be run before linking.