Run on physical device??

I assume there are plans to allow execution/debugging on a physical device? Is this likely in an upcoming EAP?

5 comments
Comment actions Permalink

Bradley,

Yes, we plan to add device support, but we are not sure when it will be added becuase this is quite closed technology.
We are investigating the possibility at the moment.

0
Comment actions Permalink

I just found a way to build and sign without the Xcode app, using only xcode CLI utilities. So all that's left is the actual deployment to device. I currently install via a HTTP server and a plist, the same way you would do with xcode's build and archive and then distribute for enterprise.

I'd imagine getting a gdp console up and running is a lot harder than simply installing the app on the device though..

0
Comment actions Permalink

Sure :)

First, I use xcodebuild and make sure that it uses the correct provisioning profile. Not sure if there's a good way to programmatically get the provisioning profile UUID, but you can see it by opening the file in the text editor - the key is named UUID :)

xcodebuild -target "My Target Name" -sdk iphoneos -configuration Debug PROVISIONING_PROFILE="[UUID of provisioning profile]".

Then you can create a signed IPA with xcrun. Assuming pwd is the project root.

KEYCHAIN SIG NAME is i.e "iPhone Developer: August Lilleaas (ABCD123)"

xcrun -sdk iphoneos PackageApplication -v build/Debug-iphoneos/myapp.app -o ~/Desktop/myapp.ipa --sign "[KEYCHAIN SIG NAME]" --embed "/Users/[USER]/Library/MobileDevice/Provisioning Profiles/[prov profile UUID].mobileprovision"

myapp.ipa will have the provisioning profile emdedded, and can be distributed (with a plist) directly to users phones without having to preinstall the provisioning profile.

0
Comment actions Permalink

Thanks, August, this is a valuable piece of informatio.
FYI: http://youtrack.jetbrains.net/issue/OC-119

0

Please sign in to leave a comment.