Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode4: Alternative Way to build IPAs

Tags:

ios

xcode4

ipa

So with XCode4, as is kinda well known, building .IPAs can only be created used "build and archive" if only one target has "Skip Install" set to "No".
My problem is that our project contains multiple targets, that need to be shipped as .ipas at some point. Setting "Skip Install" on each on everytime i need to build an .ipa is annoying. Does anybody know of a better way, maybe using those scary "Configuration Files" I've seen mentioned somewhere? Currently, i'm using the .app from the .xarchive and build an .IPA the old way, packaging it in a Payload folder.

like image 941
Blitz Avatar asked Apr 12 '11 19:04

Blitz


People also ask

Can you develop for iOS without Xcode?

Non-native platforms, like Flutter or React Native, won't make iOS builds without Mac either. Storyboards can be edited only in Xcode, so development without Xcode means development without Storyboards. Alternative IDEs for iOS development require Xcode. You don't need to run it, but you should have it installed.

Can you do Xcode on iPad?

Xcode includes everything developers need to create great applications for Mac, iPhone, iPad, Apple TV, and Apple Watch. Xcode provides developers a unified workflow for user interface design, coding, testing, and debugging. The Xcode IDE combined with the Swift programming language make developing apps easy and fun.

Can you build iOS apps without Swift?

Java code can't run on iPhone and iPad since there is no Java Virtual Machine (JVM) for iOS. However, Codename One can compile Java code to native iOS binary. Can I develop iOS apps without Swift? Yes, you can develop iOS apps without Swift using a compiler that can compile your code down to native iOS binary.


1 Answers

How about xcrun PackageApplication?

  • Xcode “Build and Archive” from command line

Execute xcrun from command line.

PRODUCTDIR=DerivedData/foo/Build/Products/AdHoc-iphoneos
TARGET=targetA
IDENTITY="iPhone\ Distribution:\ foo"
PROVISIONING_PROFILE="/Users/foo/Library/MobileDevice/Provisioning\ Profiles/foo.mobileprovision"
OUTDIR=out
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${PRODUCTDIR}/${TARGET}.app" -o "${OUTDIR}/${TARGET}.ipa" --sign "${IDENTITY}" --embed "${PROVISONING_PROFILE}"
like image 160
Kazuki Sakamoto Avatar answered Oct 03 '22 14:10

Kazuki Sakamoto