Nativescript: SOVLED - Can't build iOS with cli or xcode 12: Command Ld failed with a nonzero exit code & Command xcodebuild failed with exit code 65.

Created on 14 Nov 2020  Â·  9Comments  Â·  Source: NativeScript/NativeScript

Environment

  • CLI: v7.0.11
  • Cross-platform modules:
  • Android Runtime: n/a
  • iOS Runtime: v7.0.5
  • XCode Version: Version 12.2 (12B45b)
  • Plugin(s): None
% tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 7.0.11 version and is up to date.
✔ Component @nativescript/core has 7.0.13 version and is up to date.
✔ Component @nativescript/ios has 7.0.5 version and is up to date.
✖ Component @nativescript/android is not installed.

Describe the bug
I've wasted a ton of time trying to build for iOS simulator and iOS device. I've been developing an app for a while but since I use Windows primarily I've only been able to test on Android until now. I finally got my Mac out to try my NativeScript Angular app on an iOS device but I've had nothing but trouble. I even tried starting a brand new helloworld project ns create myapptest and ns run ios --no-hmr I still get a failed build and the error reporting is not really helping. I've searched and tried so many things with no luck. Everything is updated to latest versions.
The Cli shows error Command xcodebuild failed with exit code 65. and Xcode 12 shows Command Ld failed with a nonzero exit code neither of which have been too helpful but it appears something goes wrong during the linking phase. I pasted the error output from the NativeScript CLI and Xcode 12 below and I also attached a file with the full log trace of ns build ios --release --log trace.

Oddly enough, I did get one project to run on an iOS device. It's a demo of the nativescript-barcodescanner from @EddyVerbruggen https://github.com/eddyverbruggen/nativescript-barcodescanner I was able to open the Xcode project file up and build/run it on a physical iOS device. I can't find the difference between that demo project and a fresh HelloWorld project from the CLi.

Can anyone please help? Thank you for your time, I really appreciate it!

To Reproduce
ns create myapptest
ns run ios --no-hmr

Expected behavior
App to build successfully for iOS Device and Simulator

Sample project
Default Cli HelloWorld Project

Error Output

From Xcode:

Showing All Messages
Ld /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/myapptest.app/myapptest normal (in target 'myapptest' from project 'myapptest')
    cd /Users/rob/Documents/ns/myapptest/platforms/ios
    /Users/rob/Documents/ns/myapptest/platforms/ios/internal/nsld.sh -target arm64-apple-ios9.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -L/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/ -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents -F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -filelist /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Intermediates.noindex/myapptest.build/Debug-iphoneos/myapptest.build/Objects-normal/arm64/myapptest.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Intermediates.noindex/myapptest.build/Debug-iphoneos/myapptest.build/Objects-normal/arm64/myapptest_lto.o -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -ObjC -sectcreate __DATA __TNSMetadata /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/metadata-arm64.bin -framework NativeScript -framework TKLiveSync -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal -licucore -lz -lc++ -framework Foundation -framework UIKit -framework CoreGraphics -framework MobileCoreServices -framework Security -framework MDFInternationalization -framework MaterialComponents -framework TNSWidgets -framework Pods_myapptest -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Intermediates.noindex/myapptest.build/Debug-iphoneos/myapptest.build/Objects-normal/arm64/myapptest_dependency_info.dat -o /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/myapptest.app/myapptest

./.build_env_vars.sh: line 445: declare: UID: readonly variable
NSLD: Swift bridging header '*-Swift.h' not found under '/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Intermediates.noindex/myapptest.build/Debug-iphoneos/myapptest.build/Objects-normal/arm64'
Generating metadata...~/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin ~/Documents/ns/myapptest/platforms/ios
Python version: 2.7.16 (default, Jun  5 2020, 22:59:21) 
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc-
Generating metadata for arm64
Metadata Generator Arguments: 
./objc-metadata-generator -verbose -output-bin /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/metadata-arm64.bin -output-umbrella /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/umbrella-arm64.h -docset-path /Users/rob/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -miphoneos-version-min=9.0 -std=gnu99 -target arm64-apple-ios13.0-macabi -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/ -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents -F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -DCOCOAPODS=1 -DDEBUG=1 
Clang Arguments: 
"-v", "-x", "objective-c", "-fno-objc-arc", "-fmodule-maps", "-ferror-limit=0", "-Wno-unknown-pragmas", "-Wno-ignored-attributes", "-Wno-nullability-completeness", "-Wno-expansion-to-defined", "-D__NATIVESCRIPT_METADATA_GENERATOR=1", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk", "-miphoneos-version-min=9.0", "-std=gnu99", "-target", "arm64-apple-ios13.0-macabi", "-I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include", "-I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers", "-I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/internal", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src", "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/", "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos", "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization", "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios", "-DCOCOAPODS=1", "-DDEBUG=1", 
Saving metadata generation's stderr stream to: /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/metadata-generation-stderr-arm64.txt
Error: Unable to generate metadata for arm64.
Metadata Generator Arguments: 
./objc-metadata-generator -verbose -output-bin /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/metadata-arm64.bin -output-umbrella /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/umbrella-arm64.h -docset-path /Users/rob/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -miphoneos-version-min=9.0 -std=gnu99 -target arm64-apple-ios13.0-macabi -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers -I/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/ -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization -F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents -F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -DCOCOAPODS=1 -DDEBUG=1 
clang version 8.0.1 (tags/RELEASE_801/final)
Target: arm64-apple-ios13.0-macabi
Thread model: posix
InstalledDir: 
warning: overriding '-miphoneos-version-min=9.0' option with '--target=arm64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
 "clang-tool" "-cc1" "-triple" "arm64-apple-ios13.0.0-macabi" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-target-sdk-version=14.2" "-target-cpu" "cyclone" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature" "+aes" "-target-abi" "darwinpcs" "-fallow-half-arguments-and-returns" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "556.6" "-v" "-resource-dir" "lib/clang/8.0.1" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

ignoring nonexistent directory "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos"
#include "..." search starts here:
#include <...> search starts here:
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal (framework directory)
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization (framework directory)
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
 lib/clang/8.0.1/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks (framework directory)
End of search list.
clang version 8.0.1 (tags/RELEASE_801/final)
Target: arm64-apple-ios13.0-macabi
Thread model: posix
InstalledDir: 
warning: overriding '-miphoneos-version-min=9.0' option with '--target=arm64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
 "objc-metadata-generator" "-cc1" "-triple" "arm64-apple-ios13.0.0-macabi" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-target-sdk-version=14.2" "-target-cpu" "cyclone" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature" "+aes" "-target-abi" "darwinpcs" "-fallow-half-arguments-and-returns" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "556.6" "-v" "-resource-dir" "lib/clang/8.0.1" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/dispatch" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/libxml" "-idirafter" "lib/clang/8.0.1/include" "-idirafter" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/mach-o" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/unicode" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/objc" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/simd" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/CommonCrypto" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/AppleArchive" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers" "-I" "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization" "-F/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

clang -cc1 version 8.0.1 based upon LLVM 8.0.1 default target x86_64-apple-darwin19.6.0
ignoring nonexistent directory "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/include"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos"
ignoring duplicate directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include"
ignoring duplicate directory "lib/clang/8.0.1/include"
ignoring duplicate directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal (framework directory)
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MDFInternationalization (framework directory)
 /Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Products/Debug-iphoneos/MaterialComponents (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
 lib/clang/8.0.1/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks (framework directory)
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/dispatch
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/libxml
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/mach-o
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/unicode
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/objc
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/simd
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/CommonCrypto
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/AppleArchive
End of search list.

Command Ld failed with a nonzero exit code

From the CLI:

Platform ios successfully added. v7.0.5
Preparing project...
Compiling @angular/core : module as esm2015
Compiling @angular/common : module as esm2015
Compiling @angular/router : module as esm2015
Compiling @angular/animations : module as esm2015
Compiling @angular/animations/browser : module as esm2015
Compiling @angular/platform-browser : module as esm2015
Compiling @angular/platform-browser/animations : module as esm2015
Compiling @angular/common/http : module as esm2015
Compiling @angular/forms : module as esm2015
Compiling @nativescript/angular : module as esm2015
File change detected. Starting incremental webpack compilation...

webpack is watching the files…

Hash: 0eefb719395ff8e34e12
Version: webpack 4.44.2
Time: 45258ms
Built at: 11/13/2020 8:59:28 PM
                                              Asset       Size                                            Chunks             Chunk Names
                                          bundle.js   42.5 KiB                                            bundle  [emitted]  bundle
                                       package.json   1.46 KiB                                                    [emitted]  
                                         runtime.js   13.9 KiB                                           runtime  [emitted]  runtime
tns_modules/@nativescript/core/inspector_modules.js  797 bytes  tns_modules/@nativescript/core/inspector_modules  [emitted]  tns_modules/@nativescript/core/inspector_modules
                                          vendor.js   17.3 MiB                                            vendor  [emitted]  vendor
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
[../$$_lazy_route_resource lazy recursive] ../$$_lazy_route_resource lazy namespace object 160 bytes {bundle} [built]
[./app.css] 2.06 KiB {bundle} [built]
[./app/app-routing.module.ts] 1.27 KiB {bundle} [built]
[./app/app.component.ts] 853 bytes {bundle} [built]
[./app/app.module.ts] 1.56 KiB {bundle} [built]
[./app/item/item-detail.component.ts] 2.02 KiB {bundle} [built]
[./app/item/item.service.ts] 1.74 KiB {bundle} [built]
[./app/item/items.component.ts] 1.91 KiB {bundle} [built]
[./main.ts] 1.67 KiB {bundle} [built]
[~/package.json] external "~/package.json" 42 bytes {bundle} {tns_modules/@nativescript/core/inspector_modules} [optional] [built]
    + 546 hidden modules
Webpack compilation complete. Watching for file changes.
Webpack build done!
File change detected. Starting incremental webpack compilation...
Installing pods...
Webpack compilation complete. Watching for file changes.
Webpack build done!
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 `myapptest.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 2 total pods installed.
Updating runtime package.json with configuration values...
Project successfully prepared (ios)
Building project...
Xcode requires a team id to be specified when building for device.
You can specify the team id by setting the DEVELOPMENT_TEAM setting in build.xcconfig file located in App_Resources folder of your app, or by using the --teamId option when calling run, debug or livesync commands.
Found and using the following development team installed on your system: ***name*** (***id***)
Xcode build...
2020-11-13 20:59:56.542 xcodebuild[80373:485566]  DTDeviceKit: deviceType from e0ea359bcfd336d04eddeb57aaba7da0618fe3ab was NULL
2020-11-13 20:59:56.693 xcodebuild[80373:485566]  DTDeviceKit: deviceType from e0ea359bcfd336d04eddeb57aaba7da0618fe3ab was NULL
2020-11-13 20:59:56.693 xcodebuild[80373:485566]  DTDeviceKit: deviceType from e0ea359bcfd336d04eddeb57aaba7da0618fe3ab was NULL
./.build_env_vars.sh: line 453: declare: UID: readonly variable
NSLD: Swift bridging header '*-Swift.h' not found under '/Users/rob/Library/Developer/Xcode/DerivedData/myapptest-clnrwihkairvvaadozxrenxvmhsz/Build/Intermediates.noindex/ArchiveIntermediates/myapptest/IntermediateBuildFilesPath/myapptest.build/Debug-iphoneos/myapptest.build/Objects-normal/arm64'
Generating metadata...~/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin ~/Documents/ns/myapptest/platforms/ios
Python version: 2.7.16 (default, Jun  5 2020, 22:59:21) 
[GCC 4.2.1 Compatible Apple LLVM 11.0.3 (clang-1103.0.29.20) (-macos10.15-objc-
Generating metadata for arm64
Metadata Generator Arguments: 
./objc-metadata-generator -verbose -output-bin /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/metadata-arm64.bin -output-umbrella /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/umbrella-arm64.h -docset-path /Users/rob/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -miphoneos-version-min=9.0 -std=gnu99 -target arm64-apple-ios13.0-macabi -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/ -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents -F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -DCOCOAPODS=1 -DDEBUG=1 
Clang Arguments: 
"-v", "-x", "objective-c", "-fno-objc-arc", "-fmodule-maps", "-ferror-limit=0", "-Wno-unknown-pragmas", "-Wno-ignored-attributes", "-Wno-nullability-completeness", "-Wno-expansion-to-defined", "-D__NATIVESCRIPT_METADATA_GENERATOR=1", "-isysroot", "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk", "-miphoneos-version-min=9.0", "-std=gnu99", "-target", "arm64-apple-ios13.0-macabi", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/internal", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src", "-I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents", "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios", "-DCOCOAPODS=1", "-DDEBUG=1", 
Saving metadata generation's stderr stream to: /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/metadata-generation-stderr-arm64.txt
Error: Unable to generate metadata for arm64.
Metadata Generator Arguments: 
./objc-metadata-generator -verbose -output-bin /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/metadata-arm64.bin -output-umbrella /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/umbrella-arm64.h -docset-path /Users/rob/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.iOS.docset Xclang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -miphoneos-version-min=9.0 -std=gnu99 -target arm64-apple-ios13.0-macabi -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules -I/Users/rob/Documents/ns/myapptest/platforms/ios/internal -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src -I/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/ -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization -F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents -F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios -DCOCOAPODS=1 -DDEBUG=1 
clang version 8.0.1 (tags/RELEASE_801/final)
Target: arm64-apple-ios13.0-macabi
Thread model: posix
InstalledDir: 
warning: overriding '-miphoneos-version-min=9.0' option with '--target=arm64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
 "clang-tool" "-cc1" "-triple" "arm64-apple-ios13.0.0-macabi" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-target-sdk-version=14.2" "-target-cpu" "cyclone" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature" "+aes" "-target-abi" "darwinpcs" "-fallow-half-arguments-and-returns" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "556.6" "-v" "-resource-dir" "lib/clang/8.0.1" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos"
#include "..." search starts here:
#include <...> search starts here:
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
 lib/clang/8.0.1/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks (framework directory)
End of search list.
clang version 8.0.1 (tags/RELEASE_801/final)
Target: arm64-apple-ios13.0-macabi
Thread model: posix
InstalledDir: 
warning: overriding '-miphoneos-version-min=9.0' option with '--target=arm64-apple-ios13.0-macabi' [-Woverriding-t-option]
clang Invocation:
 "objc-metadata-generator" "-cc1" "-triple" "arm64-apple-ios13.0.0-macabi" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-Werror=implicit-function-declaration" "-fsyntax-only" "-disable-free" "-disable-llvm-verifier" "-discard-value-names" "-main-file-name" "umbrella.h" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-munwind-tables" "-target-sdk-version=14.2" "-target-cpu" "cyclone" "-target-feature" "+fp-armv8" "-target-feature" "+neon" "-target-feature" "+crypto" "-target-feature" "+zcm" "-target-feature" "+zcz" "-target-feature" "+sha2" "-target-feature" "+aes" "-target-abi" "darwinpcs" "-fallow-half-arguments-and-returns" "-dwarf-column-info" "-debugger-tuning=lldb" "-ggnu-pubnames" "-target-linker-version" "556.6" "-v" "-resource-dir" "lib/clang/8.0.1" "-isysroot" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/dispatch" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/libxml" "-idirafter" "lib/clang/8.0.1/include" "-idirafter" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/mach-o" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/unicode" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/objc" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/simd" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/CommonCrypto" "-idirafter" "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/AppleArchive" "-D" "__NATIVESCRIPT_METADATA_GENERATOR=1" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src" "-I" "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/internal/" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents" "-F/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios" "-D" "COCOAPODS=1" "-D" "DEBUG=1" "-Wno-unknown-pragmas" "-Wno-ignored-attributes" "-Wno-nullability-completeness" "-Wno-expansion-to-defined" "-std=gnu99" "-fdebug-compilation-dir" "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/metadata-generator/bin" "-ferror-limit" "0" "-fmessage-length" "0" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fimplicit-module-maps" "-fregister-global-dtors-with-atexit" "-fobjc-runtime=ios-13.0.0" "-fobjc-exceptions" "-fexceptions" "-fmax-type-align=16" "-fdiagnostics-show-option" "-x" "objective-c" "umbrella.h"

clang -cc1 version 8.0.1 based upon LLVM 8.0.1 default target x86_64-apple-darwin19.6.0
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/include"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/internal/Swift-Modules"
ignoring nonexistent directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../App_Resources/iOS/src"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/local/include"
ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/Library/Frameworks"
ignoring duplicate directory "/Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos"
ignoring duplicate directory "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include"
ignoring duplicate directory "lib/clang/8.0.1/include"
ignoring duplicate directory "/Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization/MDFInternationalization.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents/MaterialComponents.framework/Headers
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/internal (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MDFInternationalization (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/build/Debug-iphoneos/MaterialComponents (framework directory)
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios (framework directory)
 lib/clang/8.0.1/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/System/Library/Frameworks (framework directory)
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/dispatch
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/libxml
 /Users/rob/Documents/ns/myapptest/platforms/ios/../../node_modules/@nativescript/core/platforms/ios/src
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/mach-o
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/unicode
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/objc
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/simd
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/CommonCrypto
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk/usr/include/AppleArchive
End of search list.

Command Ld failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.2.99. (in target 'MDFInternationalization' from project 'Pods')
** ARCHIVE FAILED **

Unable to apply changes on device: e0ea359bcfd336d04eddeb57aaba7da0618fe3ab. Error is: Command xcodebuild failed with exit code 65.

Error Log Trace - ns build ios --release --log trace.txt

Most helpful comment

I got this error with xcode 12. Tried to downgrade to xcode 11 and after waiting 5 hours for it to download, got the same error.

All 9 comments

I got this error with xcode 12. Tried to downgrade to xcode 11 and after waiting 5 hours for it to download, got the same error.

I got this error with xcode 12. Tried to downgrade to xcode 11 and after waiting 5 hours for it to download, got the same error.

@nativescript/android is not installed

So it turns out that downgrading did actually work for me. I think this error is an issue with xcode 12 only.

I'm not sure if it was because of@nativescript/android not being installed, but after I reinstalled everything and removed the platforms directory and reran tns prepare ios, then I was able to get it to build. I ran into some different errors through the process, but I was able to work through them without too much trouble.

Thanks for the replies. I am going to download and try Xcode 11.7 just out of curiosity to see if it will work.

I tried Xcode 11.7 and Xcode 12.3 Beta and still got the same error with both of them.

Well I made some progress... I can build and run iOS fine with @[email protected] (when I create/build/run using v6) in Xcode 11/12/12.3-beta but as soon as I switch to [email protected] I start getting the errors again. This doesn't help me though because my project is NS v7 only. So after comparing the cli output of the working v6 build vs. the non-working v7 build I was able to zero in on something going wrong with the objc-metadata-generator. I tried running this executable program with the same arguments as in the log output in my original post and part way through it fails with:

zsh: illegal hardware instruction

I have no idea why that happens, maybe because the way it's compiled? But I decided to try something, I took the executable objc-metadata-generator from an @[email protected] project and put it in my helloworld test [email protected] project in platforms/ios/internal/metadata-generator/bin. I then tried the command again and it ran without the zsh: illegal hardware instruction error! So then I tried a full build/run tns run ios --no-hmr and the build succeeded for the first time with [email protected]! But then unfortunately the app crashes immediately right as the NativeScript runtime starts. The launch screen appears then freezes before actually going into the app and gives this error:

***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
at
_setNativeViewFrame(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:115:0)

When I tried to run in Xcode I got a similar error:

[NativeScript start:config];             Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

```shell

Runtime initialization took 62ms
2020-11-18 20:41:24.530190-0500 app1[995:491561] NativeScript could not load bundle file:///System/Library/Frameworks/SensorKit.framework
2020-11-18 20:41:29.303253-0500 app1[995:491561] Fatal JavaScript exception - application has been terminated.
2020-11-18 20:41:29.303444-0500 app1[995:491561] NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
at
_setNativeViewFrame(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21043:9)

**Does anyone have any ideas what is going on here with `objc-metadata-generator` and/or the immediate runtime error? I'm really stuck.  Thank you!**

---

#### Full CLI output of error:
```sh
% tns run ios --no-hmr
...
Webpack compilation complete. Watching for file changes.
Webpack build done!
Updating runtime package.json with configuration values...
Project successfully prepared (ios)
Restarting application on device fb5ee81aae6581f15f72cd15325f6965d477864e...
Unzipping LiveSync folder. This could take a while...
Unzipped 5 entries in 58.600903ms.
Cache loaded with 4644 pre-cached in CacheData and 50 items in CacheExtra.
Initializing connection
Removing all cached process handles
Sending handshake request attempt #1 to server
Creating connection to com.apple.runningboard
Handshake succeeded
Identity resolved as application<rob.nativescript.app1>
networkd_settings_read_from_file initialized networkd settings by reading plist directly
networkd_settings_read_from_file initialized networkd settings by reading plist directly
[FBSDisplaySource 1-1] silently connecting <FBSDisplayConfiguration: 0x283fc02a0; Main; mode: "375x812@3x 60Hz p3 SDR">
[FBSDisplaySource 1-1] initialized <FBSDisplayConfiguration: 0x283fc02a0; Main; mode: "375x812@3x 60Hz p3 SDR">
FBSWorkspace connecting to endpoint : <private>
FBSWorkspace registering source: <private>
FBSWorkspace connected to endpoint : <private>
Added observer for process assertions expiration warning: <_RBSExpirationWarningClient: 0x2806e7b60>
Registering for test daemon availability notify post.
notify_get_state check indicated test daemon not ready.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
at
_setNativeViewFrame(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:115:0)
at layoutNativeView(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:170:0)
at layout(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:62:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-common.js:672:18)
at onLayout(file: node_modules/@nativescript/core/ui/page/index.ios.js:367:12)
at layout(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:72:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0)
at layoutView(file: node_modules/@nativescript/core/ui/core/view/view-helper/index.ios.js:192:18)
at push.../node_modules/@nativescript/core/ui/page/index.js.UIViewControllerImpl.viewDidLayoutSubviews(file: node_modules/@nativescript/core/ui/page/index.ios.js:242:21)
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
at
_setNativeViewFrame(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:115:0)
at layoutNativeView(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:170:0)
at layout(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:62:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-common.js:672:18)
at onLayout(file: node_modules/@nativescript/core/ui/page/index.ios.js:367:12)
at layout(file: node_modules/@nativescript/core/ui/core/view/index.ios.js:72:0)
at layoutChild(file: node_modules/@nativescript/core/ui/core/view/view-helper/view-helper-common.js:96:0)
at layoutView(file: node_modules/@nativescript/core/ui/core/view/view-helper/index.ios.js:192:18)
at push.../node_modules/@nativescript/core/ui/page/index.js.UIViewControllerImpl.viewDidLayoutSubviews(file: node_modules/@nativescript/core/ui/page/index.ios.js:242:21)
', reason: '(null)'
*** First throw call stack:
(0x19071d9d4 0x1a40ceb54 0x1033b00e4 0x1037664f0 0x103766354 0x10367b08c 0x1035b0828 0x1035afe60 0x10342ae18 0x1032af6a8 0x1033fac94 0x1033fc1b4 0x19348b460 0x19398eb2c 0x193994ff8 0x1939a0314 0x1938ec570 0x1939166f8 0x192f9dcc8 0x19069d940 0x19069cbc8 0<\M-b\M^@\M-&>
Per Xcode:
Runtime initialization took 62ms
2020-11-18 20:41:24.530190-0500 app1[995:491561] NativeScript could not load bundle file:///System/Library/Frameworks/SensorKit.framework
2020-11-18 20:41:29.303253-0500 app1[995:491561] ***** Fatal JavaScript exception - application has been terminated. *****
2020-11-18 20:41:29.303444-0500 app1[995:491561] NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
 at 
    _setNativeViewFrame(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21043:9)
    at layoutNativeView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21098:14)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:20990:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22290:65)
    at onLayout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33299:57)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21000:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22679:72)
    at push.../node_modules/@nativescript/core/ui/page/index.js.UIViewControllerImpl.viewDidLayoutSubviews(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33174:66)
2020-11-18 20:41:29.304184-0500 app1[995:491561] *** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
 at 
    _setNativeViewFrame(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21043:9)
    at layoutNativeView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21098:14)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:20990:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22290:65)
    at onLayout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33299:57)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21000:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22679:72)
    at push.../node_modules/@nativescript/core/ui/page/index.js.UIViewControllerImpl.viewDidLayoutSubviews(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33174:66)
', reason: '(null)'
*** First throw call stack:
(0x1874385f0 0x18715abcc 0x1038d40e4 0x103c8a4f0 0x103c8a354 0x103b9f08c 0x103ad4828 0x103ad3e60 0x10394ee18 0x1037d36a8 0x10391ec94 0x1039201b4 0x18b991e5c 0x18df2b4ac 0x18df31604 0x18df3c148 0x18de84e34 0x18deae7c4 0x18b4fa688 0x1873b6998 0x1873b6124 0x1873b1288 0x1873b0c34 0x1914fa38c 0x18b4e322c 0x103920044 0x10391e4f8 0x1038925dc 0x103835160 0x1038ceea4 0x1038c8f68 0x102e1f758 0x187238800)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: Uncaught ReferenceError: CGRectEqualToRect is not defined
 at 
    _setNativeViewFrame(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21043:9)
    at layoutNativeView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21098:14)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:20990:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22290:65)
    at onLayout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33299:57)
    at layout(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:21000:18)
    at layoutChild(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22898:15)
    at layoutView(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:22679:72)
    at push.../node_modules/@nativescript/core/ui/page/index.js.UIViewControllerImpl.viewDidLayoutSubviews(file:///var/containers/Bundle/Application/15E035FE-22FC-47BB-BCB7-5B924B4D6124/app1.app/app/vendor.js:33174:66)
', reason: '(null)'
terminating with uncaught exception of type NSException
(lldb)

same here. Any update?

same here too. Any update?

@kelf477 @Upd4ting @pdap-user

I finally figured it out! I think it has something to do with using a Mac that is patched with dosdude1 patcher to run macOS Catalina on an unsupported mac. The way I got it to work was compiling the metadate generator myself by:

  • Download LLVM 8.0 http://releases.llvm.org/download.html#8.0.0
    (direct download: https://releases.llvm.org/8.0.0/clang+llvm-8.0.0-x86_64-apple-darwin.tar.xz)
    And be sure to have the folder containing llvm-config in PATH or make a symlink to in /usr/local/bin/
  • Download and install Cmake https://cmake.org/download/
    (NOTE: If you are using dosdude1's patch to run macOS Catalina DO NOT use homebrew to install LLVM and Cmake, I've had trouble with homebrew installing software with uncompatible binaries which gives errors like zsh: illegal hardware instruction so be safe and use the above links to download.)
  • git clone https://github.com/NativeScript/ns-v8ios-runtime
  • cd ns-v8ios-runtime
  • ./build_metadata_generator.sh
    This will build objc-metadata-generator in ns-v8ios-runtime/metadata-generator/bin You will need to copy and paste this entire bin folder in the next steps.
  • Now go to your NativeScript project directory (I will call it demo-app)
    cd demo-app
  • If you haven't already, prepare the project for iOS ns prepare ios
  • Now you are going to replace the non-working objc-metadata-generator with the one we just compiled a few steps ago. First we will delete the existing bin folder and then copy our newly complied bin folder in its place.
    rm -R platforms/ios/internal/metadata-generator/bin
  • Now copy the bin folder we compiled from ns-v8ios-runtime/metadata-generator/bin and past it into you project, demo-app/platforms/ios/internal/metadata-generator/bin
  • ns run ios --no-hmr

Your project should work on iOS now! Hopefully this helps someone, it worked for me. Please note though that any time you ns platform remove ios you will need to replace the bin folder in your project with the one you compiled yourself. Good luck!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kn9ts picture kn9ts  Â·  3Comments

rLoka picture rLoka  Â·  3Comments

tsonevn picture tsonevn  Â·  3Comments

valentinstoychev picture valentinstoychev  Â·  3Comments

fmmsilva picture fmmsilva  Â·  3Comments