本文共 1173 字,大约阅读时间需要 3 分钟。
一.系统安装:
vm10; --虚拟机
unlock-all-v120--虚拟机苹果选项插件
EI Capitan 10.11.1 Install.cdr--mac Os X
darwin6.0.3--VMtool--调节苹果像素
1.安装解压vm10.(过程略)
2.解压unlock-all-v120
先执行unlocked.exe
然后以管理员身份运行install.cmd文件即可
如果成功,则出现OSX选项
如果不成功,关闭VM或者重启电脑试下
3.引入CDR
4.IOS,装时找不到磁盘,格式化磁盘。
点击实用工具->磁盘工具,选择左边为虚拟机分配的硬盘,然后点击抹掉,即可完成格式化
5.进入系统后,会发现分辨率不对,装vmTool
点击虚拟机设置,ISO映像文件选择,VM安装目录下的darwin,进了系统安装就可以了
二.软件安装:
1.nodejs安装(略)
2.安装npm install react-native -g
3. react-native init hellowork
4.安装xcode7,没用xcode是无法运行的
5.用xcode打开 ios/hellowork.xcodeproje
6.百度 xcode免证书真机调试,运行成功
遇到的问题:
1.运行进没有权限,对hellowork 进行chmod -R 777 XXX
2.编译出现问题:把swith 里面抱错的给删了
3.xcrun: error: unable to find utility “instruments”, not a developer tool or in PATH
sudo rm /usr/bin/instruments
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/
instruments
/usr/bin/instruments
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
如果
sudo rm /usr/bin/instruments
Operation not permitted
这是由于OS X El Capitan中,在内核下引入了Rootless机制
重启 苹果按 开机按住Command + R 进行恢愎模拟(就是安装系统的界面)
打开终端输入csrutil disable就可以关闭了
转载地址:https://blog.csdn.net/y3over/article/details/53689885 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!