I am new to iOS development and self learning. I have created couple of apps and already tested in iOS simulator. These apps runs perfectly fine without any issues and warnings pre or post build.
I wanted to run apps on my iPhone for realtime testing. But cannot extract .ipa package from Xcode as i did not subscribe to developer's account yet (will do later). Tried few tweaks and followed below steps :-
- Updated SDKsettings.plist and set CODE_SIGNING_REQUIRED, ENTITLEMENTS_REQUIRED to value NO.(read at tech blog)
- Created archive and export method as : "Save for Ad Hoc Deployment"
Further steps asked for developers account again. So tried to fetch .app /.ipa from xcarchive in two ways :
a). Run command line:
xcodebuild -exportArchive -exportFormat ipa -archivePath /Users/../Library/Developer/Xcode/Archives/..\app.xcarchive/ -exportPath /Users/../Desktop/app.ipab). Copied .app file underneath the above xcarchive package. Dargged and dropped to iTunes "MyApps"
Within iTunes, i noticed that app size grew from 2.2 MB to 8.4 MB.
Connected iPhone using USB and performed install then clicked sync/apply. App gets installed on device but iTunes shows "installing"
Disconnected USB, installed App has no icon image. When touched to open the app, it starts installing and never opens up.
Please help suggest pointers so that i can test my app without developer's account.