iOSOpenDev-troubleshoot
iOSOpenDev-troubleshoot
https://github.com/kokoabim/iOSOpenDev/wiki/Troubleshoot
Troubleshoot
This article will help you self-troubleshoot iOSOpenDev-specific issues you may encounter.
iOSOpenDev Installer Failures
View installer log
Problem: Installer fails with:
Resolution:
1. Press ⌘L to view log
2. Select Show All Errors Logs
3. Scroll to the bottom of log to see why the installer failed.
4. Do something about it.
Developer Tools directory set incorrectly
Problem: Installer fails with:
installd: ./postinstall: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path.
Resolution:
1. In Terminal, run: system_profiler SPDeveloperToolsDataType
2. From the output, use the Location value and in Terminal, run: sudo xcode-select -switch (the-location-outputted)
3. Re-run the iOSOpenDev Installer.
Xcode License
Problem: Installer fails with the following in the log:
installd: ./postinstall: You have not agreed to the Xcode license agreements, please run xcodebuild standalone from within a Terminal window to review and agree to the Xcode license agreements.
You have not agreed to the Xcode license agreements, please run xcodebuild standalone from within a Terminal window to review and agree to the Xcode license agreements.
但是按照提示在Terminal中去运行xcodebuild又没有任何问题,用xcodebuild –help发现有一个option是-license。
输入xcodebuild -license会展示一大段的license,空格键是查看更多,耐心看完之后,根据最后的提示,输入agree。注意保证agree前面没有空格,有可能空格键按得太快会打几个空格出来的。
再去Jenkins做build就不会出现上面的问题了。
Resolution:
1. Download https://github.com/downloads/kokoabim/iOSOpenDev/xcode-license.tar.gz and extract xcode-license
out of it.
2. Open Terminal, go to the directory where the file was extracted to and run: ./xcode-license
dpkg-deb not found
Problem: Installer fails with the following in the log:
installd: ./postinstall: Unable to locate dpkg-deb. Make sure it is installed and in the PATH. If it is not installed then use MacPorts to install it by typing `sudo port -f install dpkg` in Terminal. If MacPorts is not installed, download it from http://www.macports.org/ and install it and install dpkg. Then re-run the iOSOpenDev Installer.
Resolution: Install dpkg (follow dpkg wiki article)
Email installer log for help
1. View installer log as described above.
2. Select all the text in the log and copy it.
3. Email copied text to dev@iosopendev.com.
Xcode Build Failures
Use MacPort’s dpkg
Problem: Build fails in Xcode with the following in the build message:
Building package /Users/chucknorris/Foo/Packages/Foo_1.0_iphoneos-arm.deb...
/opt/iOSOpenDev/bin/iosod: line 644: 37836 Trace/BPT trap: 5 "$dpkgdebPath" -b "$packageDir" "$packageFileName" >&/dev/null
Failed.
Command /bin/sh failed with exit code 133
Resolution: Use MacPort’s dpkg not Fink’s.
http://www.cnblogs.com/oracoo/archive/2012/07/08/2581899.html