我正在努力让react-native-maps工作。我已按照这些说明react-native-maps但在运行react-native run-ios时遇到错误,并且不知道是什么导致它。
的package.json
{
"name": "mobile",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"axios": "^0.18.0",
"i": "^0.3.6",
"npm": "^5.8.0",
"prop-types": "^15.6.1",
"react": "16.3.1",
"react-native": "0.55.1",
"react-native-drawer": "^2.5.0",
"react-native-elements": "^0.19.1",
"react-native-maps": "^0.21.0",
"react-native-material-ui": "^1.22.1",
"react-native-router-flux": "^4.0.0-beta.28",
"react-native-sidebar": "^0.3.0",
"react-native-vector-icons": "^4.6.0",
"react-redux": "^5.0.7",
"redux": "^3.7.2"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1",
"eslint-config-rallycoding": "^3.2.0"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": [
"./assets/fonts"
]
}
}
错误如下所示:
以下构建命令失败:
CompileC 建立/生成/ Intermediates.noindex / mobile.build /调试-iphonesimulator / mobile.build /对象 - 正常/ x86_64的/ AppDelegate.o mobile / AppDelegate.m正常x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1失败)
安装build / Build / Products / Debug-iphonesimulator / mobile.app 处理命令时遇到错误(domain = IXErrorDomain, code = 13):无法从中获取包ID /Users/danieltuttle/project/code/frontend/traveler-mobile/ios/build/Build/Products/Debug-iphonesimulator/mobile.app 打印:输入,“:CFBundleIdentifier”,不存在
命令失败:/ usr / libexec / PlistBuddy -c打印:CFBundleIdentifier 构建/编译/产品/调试-iphonesimulator / mobile.app / Info.plist中 打印:输入,“:CFBundleIdentifier”,不存在
当我查看mobile.app文件夹时。我看到那里什么都没有。没有Info.plist。没有。因为这是构建文件夹,所以它似乎应该被创建。我必须把它放在那里吗?
可以给sombody提示如何解决这个问题?谢谢!