首页 » 记事本 » Weex安装遇到的一些问题

Weex安装遇到的一些问题

Ios-deploy install doesn’t work

Install ios-deploy

sudo npm install -g --unsafe-perm --allow-root ios-deploy

Disable “SIP”

  1. Click the  symbol in the Menu bar.
  2.  Click Restart…
  3. Hold down Command-R to reboot into Recovery Mode.
  4. Click Utilities.
  5.  Select Terminal.
  6. Enter csrutil disable.
  7.  Enter reboot.

Attempt install with “SIP” disabled

  1.  After reboot, move XPCServices file to temporary location for safety purposes sudo mv /System/Library/PrivateFrameworks/MobileDevice.framework/XPCServices ~
  2. Attempt install again with this command sudo npm install -g ios-deploy –unsafe-perm –allow-root
  3.  Install should successfully complete.

Re-enable “SIP”

  1. Click the  symbol in the Menu bar.
  2. Click Restart…
  3. Hold down Command-R to reboot into Recovery Mode.
  4. Click Utilities.
  5. Select Terminal.
  6. Enter csrutil enable. (important that you set it to enable here…)
  7. Enter reboot.

https://github.com/ios-control/ios-deploy/issues/346

Install cocopods

gem update --system

sudo gem install cocoapods --pre
pod —version

Failed to execute process ‘/usr/local/bin/pod’.

Reason:The file ‘/usr/local/bin/pod’ specified the interpreter ‘/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby’, which is not an executable command.

sudo gem install -n /usr/local/bin cocoapods
此文章发表在 记事本. 将 固定链接 加入收藏.