Building TVOS .ipa from commandline?

I've downloaded Xcode 7.1 beta 3 and installed it. I can compile my .app fine in Xcode IDE, but I'm having trouble producing an .ipa via the commandline in order to set it up with our Jenkins CI system. Seems related to using "appletvos" as an -sdk. I am using the commandline tools that come with 7.1 beta 3. This is a cocoapods project, but I was getting the same error building Apple's TVML sample code without cocoapods.


Tried using xcrun for import:


Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild clean -sdk appletvos -configuration "Release" -workspace "/path/to/myApp.xcworkspace" -scheme "myApp" PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE="My App TVOS Test" CODE_SIGN_IDENTITY="My Identity" CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS="--keychain /Users/me/Library/Keychains/myuser.keychain"


/Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild -sdk appletvos -configuration "Release" -workspace "/path/to/myApp.xcworkspace" -scheme "myApp" PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE="My App" CODE_SIGN_IDENTITY="My Identity" CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS="--keychain /Users/me/Library/Keychains/myuser.keychain"


/Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcrun -sdk appletvos PackageApplication -v "/path/to/Build/Products/Release-iphoneos/myApp.app" -o "/path/to/Build//myApp.ipa" --embed "My App TVOS Test"


The error I get is:

"xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH"


I have also tried exporting and ipa with xcodebuild only using these steps. In this case, the archive step succeeds but the export step raises the below error:


Steps:


Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild clean -sdk appletvos -configuration "Release" -workspace "/path/to/myApp.xcworkspace" -scheme "myApp" PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE="My App TVOS Test" CODE_SIGN_IDENTITY="My Identity" CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS="--keychain /Users/me/Library/Keychains/myuser.keychain"


Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild archive -sdk appletvos -configuration "Release" -workspace "/path/to/myApp.xcworkspace" -scheme "myApp" PRODUCT_BUNDLE_IDENTIFIER=com.testing.myapp PROVISIONING_PROFILE="My App TVOS Test" CODE_SIGN_IDENTITY="My Identity" CONFIGURATION_BUILD_DIR=/path/to/Build/Products/Release-iphoneos OTHER_CODE_SIGN_FLAGS="--keychain /Users/me/Library/Keychains/myuser.keychain" -archivePath myApp.xcarchive


/Applications/Xcode7.1_beta_3.app/Contents/Developer/usr/bin/xcodebuild -exportArchive -archivePath myApp.xcarchive -configuration "Debug" -exportPath "/path/to/myApp.xcodeproj" -exportFormat ipa -exportProvisioningProfile "My App TVOS Test"


Error:


Details: Asked if we support packaging as a given format, but the platform is unknown: appletvos Object: <IDEArchivedApplication: 0x7fd5ebd42f00> Method: -supportsPackagingAsFormat: Thread: <NSThread: 0x7fd5e9531f20>{number = 1, name = main} Please file a bug at http:/ error: archive at path '/path/to/myApp.xcarchive ' cannot be exported as IPA

Getting the same thing with 7.1 GM. Did you ever solve this?

I'm getting the same. Does anyone have a solution?

Same problem here.

Building TVOS .ipa from commandline?
 
 
Q