昨天上午,我的应用无法为我的iOS设备(iPhone 6S)构建,我花了整整一天的时间将问题追踪到3个插件/模块:nativescript-floatingactionsbutton
,nativescript-imagepicker
和nativescript--http-formdata
该应用程序可以在iOS模拟器上构建并正常运行,但是,只要这3个插件中的任何一个包含在package.json文件中,iPhone的构建都会失败,并出现以下错误:
Xcode build...
** EXPORT FAILED **
Unable to apply changes on device: 08429eb3ed4562d68cc7045cbc1e7bd44fd48ac1.
Error is: Command xcodebuild failed with exit code 70.
我尝试运行npm run clean
,并从源代码中删除了require / import语句。这不会改变结果。构建失败,因为这些插件在package.json
中。
崩溃之前的构建日志如下:
Xcode build...
=== BUILD TARGET dist OF PROJECT dist WITH CONFIGURATION Debug ===
ld: warning: directory not found for option '-F/Users/robertbabington/Library/Developer/Xcode/DerivedData/dist-fnc
tpfbqhrpzizdvwkaoulhbygjw/Build/Intermediates.noindex/ArchiveIntermediates/dist/BuildProductsPath/Debug-iphoneos/Q
BImagePickerController'
=== BUILD TARGET dist OF PROJECT dist WITH CONFIGURATION Debug ===
while processing /Users/robertbabington/Sites/vue-native/dist/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveS
ync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/UIKit-2LM3EQU7VVY4O.pcm:
No such file or directory
note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable
static libraries should never be built with module debugging enabled. The debug experience will be degraded due
to incomplete debug information.
while processing /Users/robertbabington/Sites/vue-native/dist/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveS
ync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Darwin-MI6WZSG1PNOM.pcm:
No such file or directory
while processing /Users/robertbabington/Sites/vue-native/dist/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveS
ync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Foundation-A3SOD99KJ0S9.p
cm: No such file or directory
while processing /Users/robertbabington/Sites/vue-native/dist/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveS
ync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/Dispatch-12O7S7HHQXK9N.pc
m: No such file or directory
while processing /Users/robertbabington/Sites/vue-native/dist/platforms/ios/internal/TKLiveSync/TKLiveSync(TKLiveS
ync.o):
warning: /Users/nsbuilduser/Library/Developer/Xcode/DerivedData/ModuleCache/AKLQJDH2Y6SE/ObjectiveC-2CD0WTQVXITO7.
pcm: No such file or directory
Xcode build...
我正在运行最新版本的macOS,iOS,XCode和最新的nativescript-vue
的Alpha版本。我的供应配置文件和证书都是有效且最新的(以防万一,我什至删除了它们并制作了新的)。
我们非常感谢您的帮助-花了将近2天的时间来解决这个问题!