error: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'test' from project 'test') ** BUILD FAILED ** Command xcodebuild failed with exit code 65
I have been getting the below error everytime i try to run . Can someone please help. I am attaching the logtrace below for further investigation
Arijits-Mac-mini:test arijitdas$ tns run ios --log trace
-
* - The "TRACE" log level might print some sensitive data like secrets or access tokens in request URLs. Be careful when you share this output. *
-
*
Trying to get macOS version. Exec system_profiler SPSoftwareDataType -detailLevel mini stdout: Software:
System Software Overview:
System Version: macOS 11.1 (20C69)
Kernel Version: Darwin 20.2.0
Time since boot: 18 minutes
stderr:
macOS version based on system_profiler is 11.1.
Looking for project in '/Users/arijitdas/Autility/Repository/test'
Project directory is '/Users/arijitdas/Autility/Repository/test'.
Loading extensions.
System information:
{
"platform": "darwin",
"shell": "/bin/bash",
"os": "Darwin Arijits-Mac-mini.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 x86_64\n",
"procArch": "x64",
"nodeVer": "14.15.1",
"npmVer": "6.14.8",
"nodeGypVer": null,
"nativeScriptCliVersion": "6.7.4",
"gitVer": "2.24.3 (Apple Git-128)",
"dotNetVer": null,
"javacVersion": null,
"javaVersion": "15.0.1",
"javaPath": "java",
"adbVer": "1.0.41",
"androidInstalled": true,
"monoVer": null,
"gradleVer": null,
"isAndroidSdkConfiguredCorrectly": true,
"xcodeVer": "12.3.0",
"xcodeprojLocation": "/usr/local/bin/xcodeproj",
"itunesInstalled": false,
"cocoaPodsVer": "1.10.0",
"isCocoaPodsWorkingCorrectly": true,
"isCocoaPodsUpdateRequired": false,
"pythonInfo": {
"isInstalled": true,
"isSixPackageInstalled": true
}
}
Current CLI version: 6.7.4
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command resolveCommand is before-resolveCommand
Project dir from hooksArgs is: undefined.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command resolveCommand is after-resolveCommand
Trying to handle SIGINT event. CLI overrides this behavior and does not allow handling SIGINT as this causes issues with Ctrl + C in terminal.
The stackTrace of the location trying to handle SIGINT is:
at process.on (/usr/local/lib/node_modules/nativescript/lib/nativescript-cli.js:24:28)
at /usr/local/lib/node_modules/nativescript/node_modules/signal-exit/index.js:122:15
at Array.filter (
stderr: Calling pacoteService.extractPackage for packageName: '[email protected]', destinationDir: '/var/folders/53/v1r07dj131n5xltc352rn_rm0000gn/T/runtimeDir1201115-2937-114wi1t.bby9' and options: undefined Creating extract tar stream with options: { "strip": 1, "C": "/var/folders/53/v1r07dj131n5xltc352rn_rm0000gn/T/runtimeDir1201115-2937-114wi1t.bby9" } ⠸ Successfully extracted '[email protected]' to /var/folders/53/v1r07dj131n5xltc352rn_rm0000gn/T/runtimeDir1201115-2937-114wi1t.bby9 Will send the following information to Google Analytics: { type: 'googleAnalyticsData', category: 'CLI', googleAnalyticsDataType: 'event', action: 'Add Platform', label: 'ios__6.5.0', customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' }, value: undefined } Found shared scheme at xcschemeFilePath, renaming to match project name. Checkpoint 0 Checkpoint 1 Checkpoint 2 Will send the following information to Google Analytics: { type: 'googleAnalyticsData', category: 'CLI', googleAnalyticsDataType: 'event', action: 'Performance', label: 'AddPlatformService__addNativePlatform', customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' }, value: 101 } Platform ios successfully added. v6.5.0 Preparing project... Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test. Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ] BeforeHookName for command watch is before-watch spawn: /usr/local/bin/node "--max_old_space_size=4096" "--preserve-symlinks" "/Users/arijitdas/Autility/Repository/test/node_modules/webpack/bin/webpack.js" "--config=/Users/arijitdas/Autility/Repository/test/webpack.config.js" "--env.hmr" "--env.ios" "--env.appPath=src" "--env.appResourcesPath=App_Resources" "--env.verbose" "--env.sourceMap" "--watch" Will send the following information to Google Analytics: { type: 'googleAnalyticsData', category: 'CLI', googleAnalyticsDataType: 'event', action: 'Performance', label: 'WebpackCompilerService__startWebpackProcess', customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' }, value: 9 } clean-webpack-plugin: /Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/**/* has been removed. Compiling @angular/animations : module as esm5 Compiling @angular/core : module as esm5 Compiling @angular/animations/browser : module as esm5 Compiling @angular/animations/browser/testing : module as esm5 Compiling @angular/common : module as esm5 Compiling @angular/common/http : module as esm5 Compiling @angular/common/http/testing : module as esm5 Compiling @angular/core/testing : module as esm5 Compiling @angular/platform-browser : module as esm5 Compiling @angular/platform-browser-dynamic : module as esm5 Compiling @angular/platform-browser/testing : module as esm5 Compiling @angular/compiler/testing : module as esm5 Compiling @angular/platform-browser-dynamic/testing : module as esm5 Compiling @angular/common/testing : module as esm5 Compiling @angular/router : module as esm5 Compiling @angular/router/testing : module as esm5 Compiling @angular/platform-browser/animations : module as esm5 Compiling @angular/forms : module as esm5 File change detected. Starting incremental webpack compilation... Message from webpack File change detected. Starting incremental webpack compilation...
webpack is watching the files…
Hash: e32cfedb1dcde2218e10
Version: webpack 4.27.1
Time: 8621ms
Built at: 12/15/2020 4:16:30 PM
Asset Size Chunks Chunk Names
bundle.js 40.2 KiB bundle [emitted] bundle
package.json 112 bytes [emitted]
runtime.js 71.4 KiB runtime [emitted] runtime
tns_modules/tns-core-modules/inspector_modules.js 666 bytes tns_modules/tns-core-modules/inspector_modules [emitted] tns_modules/tns-core-modules/inspector_modules
vendor.js 18 MiB vendor [emitted] vendor
Entrypoint bundle = runtime.js vendor.js bundle.js
Entrypoint tns_modules/tns-core-modules/inspector_modules = runtime.js vendor.js tns_modules/tns-core-modules/inspector_modules.js
[../$$_lazy_route_resource lazy recursive] ../$$_lazy_route_resource lazy namespace object 160 bytes {bundle} [built]
[./app.css] 2.01 KiB {bundle} [built]
[./app/app-routing.module.ts] 778 bytes {bundle} [built]
[./app/app.component.html] 167 bytes {bundle} [built]
[./app/app.component.ts] 379 bytes {bundle} [built]
[./app/app.module.ts] 1.49 KiB {bundle} [built]
[./app/item/item-detail.component.html] 365 bytes {bundle} [built]
[./app/item/item-detail.component.ts] 1000 bytes {bundle} [built]
[./app/item/item.service.ts] 1.59 KiB {bundle} [built]
[./app/item/items.component.html] 1.69 KiB {bundle} [built]
[./app/item/items.component.ts] 758 bytes {bundle} [built]
[./main.ts] 2.07 KiB {bundle} [built]
[./package.json] 100 bytes {bundle} {tns_modules/tns-core-modules/inspector_modules} [optional] [built]
+ 607 hidden modules
Webpack compilation complete. Watching for file changes.
Message from webpack Webpack compilation complete.
Webpack build done!
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command watchPatterns is before-watchPatterns
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command watchPatterns is after-watchPatterns
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command prepareNativeApp is before-prepareNativeApp
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command checkForChanges is before-checkForChanges
Executing before-checkForChanges hook at location /Users/arijitdas/Autility/Repository/test/hooks/before-checkForChanges/nativescript-core.js in-process
Validating before-checkForChanges arguments.
Executing before-checkForChanges hook at location /Users/arijitdas/Autility/Repository/test/hooks/before-checkForChanges/nativescript-dev-webpack.js in-process
Validating before-checkForChanges arguments.
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'before-checkForChanges__nativescript-core.js',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 10
}
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'before-checkForChanges__nativescript-dev-webpack.js',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 8
}
Set configChanged to true, appResourcesChanged is: true
checkForChanges returns ProjectChangesInfo {
appResourcesChanged: true,
configChanged: true,
nativeChanged: true,
nsConfigChanged: true,
nativePlatformStatus: '2'
}
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command checkForChanges is after-checkForChanges
Images from Xcode project
[]
Current images from App_Resources
[ 'Assets.xcassets', 'LaunchScreen.storyboard', 'build.xcconfig' ]
New images to add into xcode project: Assets.xcassets, LaunchScreen.storyboard, build.xcconfig
Images to remove from xcode project:
Successfully prepared plugin @nativescript/angular for ios.
Successfully prepared plugin @nativescript/theme for ios.
Successfully prepared plugin tns-core-modules for ios.
Successfully prepared plugin nativescript-intl for ios.
Message from webpack {
emittedFiles: [
'bundle.js',
'runtime.js',
'tns_modules/tns-core-modules/inspector_modules.js',
'vendor.js',
'package.json'
],
chunkFiles: [
'bundle.js',
'runtime.js',
'tns_modules/tns-core-modules/inspector_modules.js',
'vendor.js'
],
hash: 'e32cfedb1dcde2218e10'
}
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/Podfile is 32c7118af05cda2870d9693d93b4c9376840221e
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/native-api-usage.json is 57877386fe966e8697d5c5dbc50d42feab6bed8c
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/src/NativeScriptEmbedder.h is 61d5332c711cc0ac62e0194e18077d2ff5293b11
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/src/NativeScriptEmbedder.m is 177d5673fac79dff28d09182eaef20778f66e787
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/src/module.modulemap is e3696280d924e540c4525889e025e1314ec183b9
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/typings/objc!MaterialComponents.d.ts is 7ed17f247f445c1ae064ae00d1b9024c9c2650a1
Successfully prepared plugin @nativescript/core for ios.
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/TNSProcess.h is 787f09c57ede174d6323990e6d6e9eaf134da6f0
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/NSString+Async.h is a3cdfaeb2f7360c395c8e6c2defb4a2b2ffc8f10
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/TNSLabel.h is c7c5788d3ea834d96cf8a137cbf0c4ea28fd7829
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/NSData+Async.h is 4eae4f66d67dc99a53dbbb7c2d8cf1b3df7eb487
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/TNSWidgets.h is 814beee5b8d98390227b9889d64af11660eb1f09
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/UIView+PassThroughParent.h is cddc4157f40983b34fcb1d3846666b5ecc5b1ca5
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers/UIImage+TNSBlocks.h is 3b31a5be818e25c142e99f98479c538632d350ae
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Info.plist is 615a01ba7fa48b8aa53f6c0cf2a5dade94d48475
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Modules/module.modulemap is 00d2220e76eb098f1808eb4e9b5c43ad4cadf1da
Shasum of file /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/TNSWidgets is 9ea297ea46be561c2a4110ef765b644ea4a34443
spawn: file "/Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/TNSWidgets"
Successfully prepared plugin tns-core-modules-widgets for ios.
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/angular/platforms/ios/Info.plist
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/theme/platforms/ios/Info.plist
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules/platforms/ios/Info.plist
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/nativescript-intl/platforms/ios/Info.plist
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/Info.plist
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/Info.plist
Schedule merge plist at: /Users/arijitdas/Autility/Repository/test/App_Resources/iOS/Info.plist
Info.plist: Start
Info.plist: Patch 'App_Resources/iOS/Info.plist'
Info.plist: Patch 'CFBundleIdentifier from package.json nativescript.id'
Info.plist: Patch 'CFBundleURLTypes from package.json nativescript.id'
Info.plist: Complete
Info.plist: Write to: /Users/arijitdas/Autility/Repository/test/platforms/ios/test/test-Info.plist
File change detected. Starting incremental webpack compilation...
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/angular/platforms/ios/app.entitlements
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/theme/platforms/ios/app.entitlements
No plist found at: /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules/platforms/ios/app.entitlements
Message from webpack File change detected. Starting incremental webpack compilation...
Webpack compilation complete. Watching for file changes.
Message from webpack Webpack compilation complete.
Webpack build done!
Message from webpack {
emittedFiles: [ 'bundle.js', 'tns_modules/tns-core-modules/inspector_modules.js' ],
chunkFiles: [
'bundle.js',
'runtime.js',
'tns_modules/tns-core-modules/inspector_modules.js',
'vendor.js'
],
hash: 'e32cfedb1dcde2218e10'
}
Generated data from webpack message: {
files: [
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/bundle.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/tns_modules/tns-core-modules/inspector_modules.js'
],
hasOnlyHotUpdateFiles: false,
hmrData: {
hash: '',
fallbackFiles: [
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/bundle.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/runtime.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/tns_modules/tns-core-modules/inspector_modules.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/vendor.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/bundle.js',
'/Users/arijitdas/Autility/Repository/test/platforms/ios/test/app/tns_modules/tns-core-modules/inspector_modules.js'
]
},
platform: 'ios'
}
Exec ruby -e "require 'xcodeproj'; Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-debug.xcconfig').merge(Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/App_Resources/iOS/build.xcconfig')).save_as(Pathname.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-debug.xcconfig'))"
stdout:
stderr:
Exec ruby -e "require 'xcodeproj'; Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-release.xcconfig').merge(Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/App_Resources/iOS/build.xcconfig')).save_as(Pathname.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-release.xcconfig'))"
stdout:
stderr:
Installing pods...
spawn: pod "install"
Analyzing dependencies
Downloading dependencies
Installing MDFInternationalization (2.0.0)
Installing MaterialComponents (94.5.0)
Generating Pods project
Integrating client project
[!] Please close any current Xcode sessions and use test.xcworkspace for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.
[!] Your project does not explicitly specify the CocoaPods master specs repo. Since CDN is now used as the default, you may safely remove it from your repos directory via pod repo remove master. To suppress this warning please add warn_for_unused_master_specs_repo => false to your Podfile.
Result when throw error is false:
{ stdout: '', stderr: '', exitCode: 0 }
Exec ruby -e "require 'xcodeproj'; Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-debug.xcconfig').merge(Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/Pods/Target Support Files/Pods-test/Pods-test.debug.xcconfig')).save_as(Pathname.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-debug.xcconfig'))"
stdout:
stderr:
Exec ruby -e "require 'xcodeproj'; Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-release.xcconfig').merge(Xcodeproj::Config.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/Pods/Target Support Files/Pods-test/Pods-test.release.xcconfig')).save_as(Pathname.new('/Users/arijitdas/Autility/Repository/test/platforms/ios/plugins-release.xcconfig'))"
stdout:
stderr:
There's no application configuration for metadata filtering for platform ios. Full metadata will be generated.
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command prepareNativeApp is after-prepareNativeApp
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'PrepareNativePlatformService__prepareNativePlatform',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 2763
}
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command checkForChanges is before-checkForChanges
Executing before-checkForChanges hook at location /Users/arijitdas/Autility/Repository/test/hooks/before-checkForChanges/nativescript-core.js in-process
Validating before-checkForChanges arguments.
Executing before-checkForChanges hook at location /Users/arijitdas/Autility/Repository/test/hooks/before-checkForChanges/nativescript-dev-webpack.js in-process
Validating before-checkForChanges arguments.
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command watch is after-watch
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'before-checkForChanges__nativescript-core.js',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 1
}
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'before-checkForChanges__nativescript-dev-webpack.js',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 0
}
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/App_Resources/iOS
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/App_Resources/iOS/Assets.xcassets
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/App_Resources/iOS/Assets.xcassets/LaunchScreen.AspectFill.imageset
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/App_Resources/iOS/Assets.xcassets/LaunchScreen.Center.imageset
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/src
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/@nativescript/core/platforms/ios/typings
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Headers
containsNewerFiles will check /Users/arijitdas/Autility/Repository/test/node_modules/tns-core-modules-widgets/platforms/ios/TNSWidgets.framework/Modules
Set nativeChanged to false.
Set value of configChanged to false
checkForChanges returns ProjectChangesInfo {
appResourcesChanged: false,
nativeChanged: false,
nsConfigChanged: false,
configChanged: false,
nativePlatformStatus: '3'
}
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command checkForChanges is after-checkForChanges
Project successfully prepared (ios)
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
AfterHookName for command prepare is after-prepare
Executing after-prepare hook at location /Users/arijitdas/Autility/Repository/test/hooks/after-prepare/nativescript-dev-webpack.js in-process
Validating after-prepare arguments.
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'after-prepare__nativescript-dev-webpack.js',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 95
}
Building project...
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Performance',
label: 'PrepareController__prepareCore',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: 23303
}
Will send the following information to Google Analytics: {
type: 'googleAnalyticsData',
category: 'CLI',
googleAnalyticsDataType: 'event',
action: 'Build',
label: 'iOS_Simulator_Debug_Incremental',
customDimensions: { cd2: 'Angular', cd9: 'false', cd5: 'CLI' },
value: undefined
}
Project dir from hooksArgs is: /Users/arijitdas/Autility/Repository/test.
Hooks directories: [ '/Users/arijitdas/Autility/Repository/test/hooks' ]
BeforeHookName for command buildIOS is before-buildIOS
Xcode build...
spawn: xcodebuild "ONLY_ACTIVE_ARCH=NO" "CODE_SIGN_IDENTITY=" "build" "-configuration" "Debug" "-sdk" "iphonesimulator" "BUILD_DIR=/Users/arijitdas/Autility/Repository/test/platforms/ios/build" "SHARED_PRECOMPS_DIR=/Users/arijitdas/Autility/Repository/test/platforms/ios/build/sharedpch" "-workspace" "/Users/arijitdas/Autility/Repository/test/platforms/ios/test.xcworkspace" "-scheme" "test"
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild ONLY_ACTIVE_ARCH=NO CODE_SIGN_IDENTITY= build -configuration Debug -sdk iphonesimulator BUILD_DIR=/Users/arijitdas/Autility/Repository/test/platforms/ios/build SHARED_PRECOMPS_DIR=/Users/arijitdas/Autility/Repository/test/platforms/ios/build/sharedpch -workspace /Users/arijitdas/Autility/Repository/test/platforms/ios/test.xcworkspace -scheme test
Build settings from command line: BUILD_DIR = /Users/arijitdas/Autility/Repository/test/platforms/ios/build CODE_SIGN_IDENTITY = ONLY_ACTIVE_ARCH = NO SDKROOT = iphonesimulator14.3 SHARED_PRECOMPS_DIR = /Users/arijitdas/Autility/Repository/test/platforms/ios/build/sharedpch
note: Using new build system note: Building targets in parallel note: Using codesigning identity override: note: Planning build note: Constructing build description warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'MDFInternationalization' from project 'Pods') error: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'test' from project 'test')
** BUILD FAILED **
Command xcodebuild failed with exit code 65
Unable to apply changes on device: C9F25B26-0203-4179-A0E2-5D2DFB436504. Error is: Command xcodebuild failed with exit code 65.
Will emit event runOnDeviceError with data {
projectDir: '/Users/arijitdas/Autility/Repository/test',
deviceIdentifier: 'C9F25B26-0203-4179-A0E2-5D2DFB436504',
applicationIdentifier: 'org.nativescript.test',
error: Error: Command xcodebuild failed with exit code 65
at Errors.failWithOptions (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:147:28)
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:120:21)
at XcodebuildCommandService.
adding didn't work for me. any workaround to fix this one?
VALIDATE_WORKSPACE = YES;
The first time that i added this line didn't work for me either, than i noticed that my build.xcconfig file had a .default extension and looked likebuild.xcconfig.default. I removed the .default extension, and it worked.
Hi, I am stuck at the exact issue. I have a live project and few days back when I upgraded to BigSur and Xcode to 12.3 with NativeScript 6.5.0( This is my original version of app and I didnt upgrade this yet) , tns run iOS --bundle command fails with below warning & ERROR
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.3.99. (in target 'MDFInternationalization' from project 'Pods') error: Building for iOS Simulator, but the linked and embedded framework 'TNSWidgets.framework' was built for iOS + iOS Simulator. (in target 'projectname' from project 'projectname') ** BUILD FAILED **
Any help would be appreciated. Am totally stuck here past one week. I have been searching through all resources and options, nothing really solving it for me.
Command xcodebuild failed with exit code 65
If I downgrade my Mac , will that solve , any help would be highly appreciated
VALIDATE_WORKSPACE = YES; is not working for me... 😢
VALIDATE_WORKSPACE = YES;is not working for me... 😢
Try running without Hot Module Replacement by tns run ios --no-hmr
In my case, I solved this problem by simply setting Validate Workspace to Yes in the Build Settings tab.
Hey guys, setting 'Validate Workspace' to 'Yes' works for me too. Just wondering what does 'Validate Workspace' actually do?
@AlbanRicherPro, I tried to downgrade in Xcode 12.2 using downloading the Xcode_12.2.xip file and when clicking to the .xip file but facing the issue "The archive ' Xcode_12.2.xip' is damaged and can't be expanded".
Could you provide me steps on how to downgrade in Xcode 12.2?
@AlbanRicherPro, I tried to downgrade in Xcode 12.2 using downloading the Xcode_12.2.xip file and when clicking to the .xip file but facing the issue "The archive ' Xcode_12.2.xip' is damaged and can't be expanded".
Could you provide me steps on how to downgrade in Xcode 12.2?
I'am using Xcode 12.3, but sorry I don't know how to downgrade to Xcode 12 😕
There is a new version of the tns-ios dependency and it should also resolve the problem.
@AlbanRicherPro, I tried to downgrade in Xcode 12.2 using downloading the Xcode_12.2.xip file and when clicking to the .xip file but facing the issue "The archive ' Xcode_12.2.xip' is damaged and can't be expanded".
Could you provide me steps on how to downgrade in Xcode 12.2?
@dasarijit88. my comment was for you accidentally tagged.
@AlbanRicherPro, I'm also using Xcode 12.3 and tns-ios version 4.1.1 but unable to resolve the problem.
which tns-ios version you are using?
@nileshv123 4.1.1 is very old, try 6.5.4.
@nileshv123 I'm using 6.5.4
So, the only way to properly fix it, is to recompile the TNSCore.framework, TNSWidgets.framework and TNSChart.framework to the XCFrameworks.
Isn't @boris01 correct here that the framework needs to be recompiled? Any plans for that in future releases?
tns-ios 6.5.4 @nativescript/ios 7.1.0
Either one is what you at least want to be using. Stated here: https://nativescript.org/blog/nativescript-7-1-hmr-reenabled-and-xcode-12-3-support/
If your project is using a lot of Cocoapods (some of which may not be compliant with Xcode 12.3) you may also want to create App_Resources/iOS/Podfile with the following contents:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
end
end
end
ns clean and run.
Here Is Already Solved with all possible solution added Solved Xcode 12.3: Building for iOS Simulator, but the linked and embedded framework was built for iOS + iOS Simulator
None of these are working for me, much like @dasarijit88 . Could it be a problem with the new M1 mac-books?
This issue still persist in NS8 and happens with default "template-drawer-navigation-ng" template trying to build on M1 mbpro and run in simulator. I hope someone provide a working solution. Xcode Version 12.5
Any updates on this team? Struggling with the same thing :/
Still happening. M1 MacBook Pro 2021 macOS Monterey 12.2 Xcode version 13.2.1 Nativescript version 8.1.5
Adding arm64 to excluded architectures is no solution. It is probably only working on intel based macs – can someone confirm/refute?
VALIDATE_WORKSPACE = YES also changes nothing for me. But it seems to work on that guy's M1 mac.