nativescript-sqlite插件不能在iOS上运行

时间:2016-01-15 14:20:10

标签: ios sqlite nativescript

我在iOS上运行我的nativescript应用程序时遇到问题。我在我的应用程序中使用nativescript-sqlite插件,它在Android上正常运行,但在iOS上它甚至无法构建应用程序。以下是输出:

john-imac:nextra-test johnt$ tns emulate ios
Successfully prepared plugin nativescript-insomnia for ios.
Successfully prepared plugin nativescript-sqlite for ios.
Processing node_modules failed. Error: Command failed: /bin/sh -c ruby -e "require 'xcodeproj'; Xcodeproj::Config.new('/Users/johnt/Dropbox/NativeScript/nextra-test/platforms/ios/plugins-debug.xcconfig').merge(Xcodeproj::Config.new('/Users/johnt/Dropbox/NativeScript/nextra-test/node_modules/nativescript-sqlite/platforms/ios/build.xcconfig')).save_as(Pathname.new('/Users/johnt/Dropbox/NativeScript/nextra-test/platforms/ios/plugins-debug.xcconfig'))"
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- xcodeproj (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from -e:1:in `

有人会有任何想法吗?

1 个答案:

答案 0 :(得分:0)

我发现了这个问题。我没有安装正确的gem

您可以使用sudo gem install xcodeproj

进行安装