gpt4 book ai didi

ios - 由于 MDFInternationalization 和 MaterialComponents 目录不存在,无法 tns 构建 ios

转载 作者:行者123 更新时间:2023-12-01 16:13:09 25 4
gpt4 key购买 nike

作品 x码 但是 不是 native 脚本 tns . tns build android很好。

当我执行 tns prepare ios && tns build ios我收到以下错误,因为这些目录不存在。 Debug-iphonesimulator路径确实存在,其中包含一些其他文件和一个文件夹,但 MDFInternationalizationMaterialComponents不。

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

我尝试使用 构建它x码 我得到了一个 构建成功工作应用程序 iPhone模拟器 .

根据我在写这个问题时的理解,它看起来像 tns无法生成这些文件夹 .

我在这里想念什么?

最佳答案

有人在 NativeScript GitHub Repos 上回答了这个问题:

I found the erro. I was openning the project by the wrong file.

This is usually caused by having the .xcodeproj file open instead of .xcworkspace.

When you run 'pod install' for the first time, it will create an .xcworkspace file, which includes your original .xcodeproj and a Pods project. You'll need to close your .xcodeproj and open the .xcworkspace instead.

This is a common issue when creating a project through Xcode's new project wizard - I often forget that I'm not in a workspace, which is required to get Cocoapods to link correctly.



Build failed - ld: framework not found Pods

关于ios - 由于 MDFInternationalization 和 MaterialComponents 目录不存在,无法 tns 构建 ios,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59856596/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com