它适用于xCode但不适用于本机脚本tns
。tns build android
很好。
当我执行时,tns prepare ios && tns build ios
我收到以下错误,因为这些目录不存在。该Debug-iphonesimulator
路径确实存在,其中包含一些其他文件和一个文件夹,但MDFInternationalization
不MaterialComponents
存在。
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
我尝试使用xCode构建它,并在iPhone 模拟器中使用工作应用程序成功构建。
根据我在撰写此问题时的理解,似乎tns
无法生成这些文件夹。
我在这里想念什么?