Advertisement
Guest User

developing with iOS5.1 devices in XCode 4.2 (Snow Leopard)

a guest
Mar 17th, 2012
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.07 KB | None | 0 0
  1. #! /bin/bash
  2. # developing with iOS5.1 devices in XCode 4.2 (Snow Leopard):
  3. #  * first, download XCode 4.3.1 from Apple Developer page, which includes the iOS5.1 SDK and tools
  4. #  * mount the dmg regularly, so that it is mounted under /Volumes/Xcode/
  5. #  * close XCode
  6. #  * execute this script
  7. #  * reopen XCode and re-connect your device
  8.  
  9. # getting the new device support
  10. sudo cp -Rpvn "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176)" /Developer/Platforms/iPhoneOS.platform/
  11.  
  12. # getting the new SDK
  13. sudo cp -Rpvn "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk" /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
  14.  
  15. # backing up version.plist before overwriting it
  16. sudo mv /Developer/Platforms/iPhoneOS.platform/version.plist /Developer/Platforms/iPhoneOS.platform/version_old.plist
  17.  
  18. # getting the new version information
  19. sudo cp -n /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/version.plist /Developer/Platforms/iPhoneOS.platform/version.plist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement