It works on xCode but not with native script tns
. tns build android
is fine.
When I execute tns prepare ios && tns build ios
I get the error below as those directories don't exist. The Debug-iphonesimulator
path does exist with a few other files and a folder inside it but MDFInternationalization
and MaterialComponents
don't.
Merged 749 categories.
Result: 43068 declarations from 140 top level modules
Done! Running time: 3.81413 sec
Saving metadata generation's stderr stream to: /Users/sylvester/randd/native-script/platforms/ios/build/Debug-iphonesimulator/metadata-generation-stderr-x86_64.txt
~/randd/native-script/platforms/ios
ld: warning: directory not found for option '-F/Users/sylvester/randd/native-script/platforms/ios/build/Debug-iphonesimulator/MDFInternationalization'
ld: warning: directory not found for option '-F/Users/sylvester/randd/native-script/platforms/ios/build/Debug-iphonesimulator/MaterialComponents'
ld: framework not found MDFInternationalization
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-F/Users/sylvester/randd/native-script/platforms/ios/build/Debug-iphonesimulator/MDFInternationalization'
ld: warning: directory not found for option '-F/Users/sylvester/randd/native-script/platforms/ios/build/Debug-iphonesimulator/MaterialComponents'
ld: framework not found MDFInternationalization
clang: error: linker command failed with exit code 1 (use -v to see invocation)
note: Using new build system
note: Planning build
note: Constructing build description
** BUILD FAILED **
Command xcodebuild failed with exit code 65
I tried to build this using xCode and I got a successful build with a working app in the iPhone simulator.
As per my undersatnding at the time of writing this question, it looks like tns
is failing to generate these folders.
What am I missing here?
ld: framework not found MDFInternationalization
on Xcode. – Macnamara