【发布时间】:2020-05-08 10:17:27
【问题描述】:
它适用于 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 似乎无法生成这些文件夹。
我在这里错过了什么?
【问题讨论】:
-
同样的错误,但与我相反。在 VS 代码上运行成功,但在 Xcode 上抛出异常
ld: framework not found MDFInternationalization。 -
完全相同的问题,在任何地方都找不到帮助... NativeScript 似乎是一连串的痛苦和惩罚!
标签: ios xcode nativescript ios-simulator nativescript-cli