我已经将一个分离的 Expo 项目升级到 Expo SDK 29。现在我想运行 pod install,但是当我这样做时,我收到以下错误消息:
[!] CocoaPods could not find compatible versions for pod "EXPermissionsInterface":
In Podfile:
EXCamera (from `../node_modules/expo-camera/ios`) was resolved to 1.0.1, which depends on
EXPermissionsInterface
EXPermissionsInterface (from `../node_modules/expo-permissions-interface/ios`)
Specs satisfying the `EXPermissionsInterface (from `../node_modules/expo-permissions-interface/ios`), EXPermissionsInterface` dependency were found, but they required a higher minimum deployment target.
很遗憾,我还没有在网络上发现这个错误。我的 Podfile 看起来像这样:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
EXPO_CPP_HEADER_DIR = 'ExpoKit'
target 'my-app' do
pod 'ExpoKit',
:git => "http://github.com/expo/expo.git",
:tag => "ios/2.7.0",
:subspecs => [
"Core"
],
:inhibit_warnings => true
pod 'EXGL',
:path => "../node_modules/expo-gl/ios",
:inhibit_warnings => true
pod 'EXCore',
:path => "../node_modules/expo-core/ios",
:inhibit_warnings => true
pod 'EXCamera',
:path => "../node_modules/expo-camera/ios",
:inhibit_warnings => true
pod 'EXSensors',
:path => "../node_modules/expo-sensors/ios",
:inhibit_warnings => true
pod 'EXConstants',
:path => "../node_modules/expo-constants/ios",
:inhibit_warnings => true
pod 'EXFileSystem',
:path => "../node_modules/expo-file-system/ios",
:inhibit_warnings => true
pod 'EXPermissions',
:path => "../node_modules/expo-permissions/ios",
:inhibit_warnings => true
pod 'EXCameraInterface',
:path => "../node_modules/expo-camera-interface/ios",
:inhibit_warnings => true
pod 'EXSensorsInterface',
:path => "../node_modules/expo-sensors-interface/ios",
:inhibit_warnings => true
pod 'EXConstantsInterface',
:path => "../node_modules/expo-constants-interface/ios",
:inhibit_warnings => true
pod 'EXReactNativeAdapter',
:path => "../node_modules/expo-react-native-adapter/ios",
:inhibit_warnings => true
pod 'EXFileSystemInterface',
:path => "../node_modules/expo-file-system-interface/ios",
:inhibit_warnings => true
pod 'EXPermissionsInterface',
:path => "../node_modules/expo-permissions-interface/ios",
:inhibit_warnings => true
pod 'EXFaceDetectorInterface',
:path => "../node_modules/expo-face-detector-interface/ios",
:inhibit_warnings => true
pod 'EXSMS',
:path => "../node_modules/expo-sms/ios",
:inhibit_warnings => true
pod 'EXGL-CPP',
:path => "../node_modules/expo-gl-cpp/cpp",
:inhibit_warnings => true
pod 'React',
:path => "../node_modules/react-native",
:inhibit_warnings => true,
:subspecs => [
"Core",
"ART",
"RCTActionSheet",
"RCTAnimation",
"RCTCameraRoll",
"RCTGeolocation",
"RCTImage",
"RCTNetwork",
"RCTText",
"RCTVibration",
"RCTWebSocket",
"DevSupport",
"CxxBridge"
]
pod 'yoga',
:path => "../node_modules/react-native/ReactCommon/yoga",
:inhibit_warnings => true
pod 'DoubleConversion',
:podspec => "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec",
:inhibit_warnings => true
pod 'Folly',
:podspec => "../node_modules/react-native/third-party-podspecs/Folly.podspec",
:inhibit_warnings => true
pod 'glog',
:podspec => "../node_modules/react-native/third-party-podspecs/glog.podspec",
:inhibit_warnings => true
post_install do |installer|
installer.pods_project.main_group.tab_width = '2';
installer.pods_project.main_group.indent_width = '2';
installer.pod_targets.each do |target|
if target.pod_name == 'ExpoKit'
target.native_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'EX_DETACHED=1'
# needed for GoogleMaps 2.x
config.build_settings['FRAMEWORK_SEARCH_PATHS'] ||= []
config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Base/Frameworks'
config.build_settings['FRAMEWORK_SEARCH_PATHS'] << '${PODS_ROOT}/GoogleMaps/Maps/Frameworks'
end
end
if ['Amplitude-iOS','Analytics','AppAuth','Branch','CocoaLumberjack','FBSDKCoreKit','FBSDKLoginKit','FBSDKShareKit','GPUImage','JKBigInteger2'].include? target.pod_name
target.native_target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
# Can't specify this in the React podspec because we need
# to use those podspecs for detached projects which don't reference ExponentCPP.
if target.pod_name.start_with?('React')
target.native_target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
config.build_settings['HEADER_SEARCH_PATHS'] ||= ['$(inherited)']
end
end
# Build React Native with RCT_DEV enabled
next unless target.pod_name == 'React'
target.native_target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'RCT_DEV=1'
end
end
end
end
为了创建 Podfile,我按照 Expo 在 Github 上提供的说明进行操作。
我认为解决我的问题并不重要,但是,这是我的 package.json:
{
"main": "node_modules/expo/AppEntry.js",
"private": true,
"dependencies": {
"@expo/react-native-action-sheet": "^1.1.2",
"@mapbox/polyline": "^1.0.0",
"expo": "^29.0.0",
"i18next": "^11.9.0",
"i18next-locize-backend": "^1.6.0",
"locize-editor": "^1.6.0",
"native-base": "^2.7.2",
"prop-types": "^15.6.2",
"react": "16.3.1",
"react-i18next": "^7.12.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz",
"react-native-create-bridge": "^2.0.1",
"react-native-keyboard-spacer": "^0.4.1",
"react-native-maps": "^0.21.0",
"react-native-remote-svg": "^1.2.0",
"react-native-swiper": "^1.5.13",
"react-native-triangle": "0.0.9",
"react-navigation": "^2.1.0",
"react-redux": "^5.0.7",
"redux": "^4.0.0",
"redux-thunk": "^2.3.0"
}
}
最佳答案
我也在 Github 上问过这个问题并在那里得到了有效的答案:https://github.com/expo/expo/issues/2585 .
问题是我在 Podfile 中定义的最低 iOS 版本。将此版本从 9.0 更改为 10.0 后,我可以毫无问题地运行 pod update。
关于ios - 博览会套件 : 'pod update' error after updating to SDK 29,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53143437/
我正在尝试测试是否存在表单。我是Rails新手。我的new.html.erb_spec.rb文件的内容是:require'spec_helper'describe"messages/new.html.erb"doit"shouldrendertheform"dorender'/messages/new.html.erb'reponse.shouldhave_form_putting_to(@message)with_submit_buttonendendView本身,new.html.erb,有代码:当我运行rspec时,它失败了:1)messages/new.html.erbshou
我在我的项目目录中完成了compasscreate.和compassinitrails。几个问题:我已将我的.sass文件放在public/stylesheets中。这是放置它们的正确位置吗?当我运行compasswatch时,它不会自动编译这些.sass文件。我必须手动指定文件:compasswatchpublic/stylesheets/myfile.sass等。如何让它自动运行?文件ie.css、print.css和screen.css已放在stylesheets/compiled。如何在编译后不让它们重新出现的情况下删除它们?我自己编译的.sass文件编译成compiled/t
我在我的项目中添加了一个系统来重置用户密码并通过电子邮件将密码发送给他,以防他忘记密码。昨天它运行良好(当我实现它时)。当我今天尝试启动服务器时,出现以下错误。=>BootingWEBrick=>Rails3.2.1applicationstartingindevelopmentonhttp://0.0.0.0:3000=>Callwith-dtodetach=>Ctrl-CtoshutdownserverExiting/Users/vinayshenoy/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.1/lib/action_mailer
在MRIRuby中我可以这样做:deftransferinternal_server=self.init_serverpid=forkdointernal_server.runend#Maketheserverprocessrunindependently.Process.detach(pid)internal_client=self.init_client#Dootherstuffwithconnectingtointernal_server...internal_client.post('somedata')ensure#KillserverProcess.kill('KILL',
我已经从我的命令行中获得了一切,所以我可以运行rubymyfile并且它可以正常工作。但是当我尝试从sublime中运行它时,我得到了undefinedmethod`require_relative'formain:Object有人知道我的sublime设置中缺少什么吗?我正在使用OSX并安装了rvm。 最佳答案 或者,您可以只使用“require”,它应该可以正常工作。我认为“require_relative”仅适用于ruby1.9+ 关于ruby-主要:Objectwhenrun
我花了三天的时间用头撞墙,试图弄清楚为什么简单的“rake”不能通过我的规范文件。如果您遇到这种情况:任何文件夹路径中都不要有空格!。严重地。事实上,从现在开始,您命名的任何内容都没有空格。这是我的控制台输出:(在/Users/*****/Desktop/LearningRuby/learn_ruby)$rake/Users/*******/Desktop/LearningRuby/learn_ruby/00_hello/hello_spec.rb:116:in`require':cannotloadsuchfile--hello(LoadError) 最佳
我已经像这样安装了一个新的Rails项目:$railsnewsite它执行并到达:bundleinstall但是当它似乎尝试安装依赖项时我得到了这个错误Gem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/rubyextconf.rbcheckingforlibkern/OSAtomic.h...yescreatingMakefilemake"DESTDIR="cleanmake"DESTDIR="
关闭。这个问题需要detailsorclarity.它目前不接受答案。想改进这个问题吗?通过editingthispost添加细节并澄清问题.关闭8年前。Improvethisquestion在首页我有:汽车:VolvoSaabMercedesAudistatic_pages_spec.rb中的测试代码:it"shouldhavetherightselect"dovisithome_pathit{shouldhave_select('cars',:options=>['volvo','saab','mercedes','audi'])}end响应是rspec./spec/request
似乎无法为此找到有效的答案。我正在阅读Rails教程的第10章第10.1.2节,但似乎无法使邮件程序预览正常工作。我发现处理错误的所有答案都与教程的不同部分相关,我假设我犯的错误正盯着我的脸。我已经完成并将教程中的代码复制/粘贴到相关文件中,但到目前为止,我还看不出我输入的内容与教程中的内容有什么区别。到目前为止,建议是在函数定义中添加或删除参数user,但这并没有解决问题。触发错误的url是http://localhost:3000/rails/mailers/user_mailer/account_activation.http://localhost:3000/rails/mai
这里有一个很好的答案解释了如何在Ruby中下载文件而不将其加载到内存中:https://stackoverflow.com/a/29743394/4852737require'open-uri'download=open('http://example.com/image.png')IO.copy_stream(download,'~/image.png')我如何验证下载文件的IO.copy_stream调用是否真的成功——这意味着下载的文件与我打算下载的文件完全相同,而不是下载一半的损坏文件?documentation说IO.copy_stream返回它复制的字节数,但是当我还没有下