Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

在react-native run-ios 时,报以下错误 #5

Open
Wxiaosheng opened this issue Dec 1, 2017 · 1 comment
Open

在react-native run-ios 时,报以下错误 #5

Wxiaosheng opened this issue Dec 1, 2017 · 1 comment

Comments

@Wxiaosheng
Copy link

The following build commands failed:
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Comic\ Sans\ MS.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Comic\ Sans\ MS.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Rubik-Black.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Rubik-Black.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Arial\ Black.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Arial\ Black.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Microsoft\ Sans\ Serif.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Microsoft\ Sans\ Serif.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Arial.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Arial.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Courier\ New.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Courier\ New.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Georgia.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Georgia.ttf
CpResource /Users/wangxiaosheng/react-native-ofo/node_modules/native-base/Fonts/Andale\ Mono.ttf build/Build/Products/Debug-iphonesimulator/RNofo.app/Andale\ Mono.ttf

(8 failures)

Installing build/Build/Products/Debug-iphonesimulator/RNofo.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNofo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

@JakeXu
Copy link

JakeXu commented Feb 5, 2018

本人只在ios的模拟器里尝试了下, android相关问题请对照自行修改

折腾中主要遇到的坑都来自于 native-base, 个人感觉其UI一般般, 大家项目中可绕开, 省的入坑

请修改 package.json 如下依赖:

  1. 第一步
"dependencies": {
    "native-base": "^2.2.0",
    "react": "16.0.0-alpha.6",
    "react-native": "0.44.0",
    "react-native-camera": "^0.6.0",
    "react-native-simple-toast": "0.0.5",
    "react-navigation": "^1.0.0-beta.7"
  }
  1. 第二步
npm install
  1. 第三步
react-native link
  1. 第四步
    用xcode打开ios项目, 在 Resources 中删除红色部分字体, 并选择 Product >>> Clean 命令
  2. 最后

就可以愉快的跑起来啦, 不过项目中还是有些功能报错的, 大家参考参考, 互勉进步就行啦!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants