xcodebuild

iOS App crashing before entering main() with Xcode 4.2 & iOS 5

吃可爱长大的小学妹 提交于 2019-11-28 10:57:06
Background After upgrading xcode4.1 / ios4 to xcode4.2 / ios5 I am experiencing crashes while the App is loading and before it even enters main() . I have set a break point in main() but it is never reached. Compiling the project in Xcode 4.1 with a Base SDK of 4.3 works fine on iOS 4.x and iOS 5. Compiling the same project in Xcode 4.2 with a Base SDK of 5.0 works fine on 4.x but crashes in iOS 5, both on the simulator and on a device. Simulator Crash Crashes with EXC_BAD_ACCESS List of calls, all system calls, not even the main() has not been called yet. My best guess is a problem loading a

When compiling for multiple targets in XCode, how do i ensure that certain files will not be included one target

不问归期 提交于 2019-11-28 09:05:04
问题 I searched for a long time on stackoverflow using every keyword I could think of to solve this. I am programming for iphone and I have a lite and paid version of my app. I followed the instructions here Creating Lite Versions of iPhone Games / Apps for duplicating the target. This works and now I am working on slimming down the lite version. Main problem? Images. The lite version needs to have several hundred less images than the paid version. So, I made 2 groups in XCode. One "Folder Group"

xcodebuild arguments ignored when using archive

≯℡__Kan透↙ 提交于 2019-11-28 07:32:38
问题 My name is Luca and I am currently working on iOS continuous integration to build apps in xcode for distribution (Ad Hoc and App Store) using shell-scripting. So far I achieved good results with IPA files. My problem comes for distribution in App Store. To build a .app from script (passing some arguments) I do: xcodebuild -scheme myScheme -configuration myConfiguration PRODUCT_NAME=myProductName TARGETED_DEVICE_FAMILY=myTargetedDeviceFamily .... etc Since with XCode 4.2, apps submission is

How to detect that a provisioning profile is for development or distribution, programmatically

孤街浪徒 提交于 2019-11-28 06:19:47
I would like to detect if a given provisioning profile is a development profile or a distribution (adhoc or app store) profile. I need to do this purely programmatically. I already understand how to detect adhoc vs appstore. And am specifically interested in dev vs. distribution. I've examined the plists internal to each type of profile and cannot find a discernable difference (via security cms -D -i #{@profilePath} ). I've also looked into the openssl api and am using this for some certificate manipulation. This is for a custom xcode automated build system. As part of pre-build validation I

Why are xcodebuild and Xcode 4.2 so slow?

强颜欢笑 提交于 2019-11-28 06:06:36
I am using Xcode 4.2 on a relatively large project (a few ten thousand lines of code) and it is horribly slow. Editing is ok, but whenever I try to compile the project (in Xcode, or with xcodebuild on the command line), my machine (quad core i7 MacBook Pro, 4 GB RAM) crawls to a halt. I have noticed that directly after starting xcodebuild, it spawns more than 8 clang processes, without the "real" compile processes starting. No xcodebuild output is so far seen on stout. I've tried reducing the number of parallel build processes , but still lots of clang processes are launched at the beginning.

Code sign error with Xcode 3.2

霸气de小男生 提交于 2019-11-28 05:19:05
I had a fully working build environment before upgrading to iPhone OS 3.1 and Xcode 3.2. Now when I try to do a build, I get the following: Code Sign error: Provisioning profile 'FooApp test' specifies the Application Identifier 'no.fooapp.iphoneapp' which doesn't match the current setting 'TGECMYZ3VK.no.fooapp.iphoneapp' The problem is that Xcode somehow manages to think that the "FooApp Test" provisioning profile specifies the Application Identifier "no.fooapp.iphoneapp", but this is not the case. In the Organizer (and in the iPhone developer portal website) the app identifier is correctly

How can I use the legacy build system with Xcode 10's `xcodebuild`?

一个人想着一个人 提交于 2019-11-28 04:50:59
I'd like to use the new build system of Xcode 10 for development, but our build in our continuous integration system fails since the xcarchive produced has an issue: the Info.plist in the xcarchive is missing the ApplicationProperties key and the information therein! It turns out switching back to the legacy build system fixes this. This can be done in the workspace settings (File > Workspace Settings… > Build System). But I would prefer to keep the new build system for development and only use the legacy build system for CI builds. Is there a way to make xcodebuild use the legacy build system

Steps to upload an iPhone application to the AppStore in xcode4

你离开我真会死。 提交于 2019-11-28 04:47:42
as xcode 3 and xcode 4 is totally different. i'm a bit lost to submit app to app store. Do i still need to duplicate "Release" to create "iphoneDistrubition" configuration. Or can I straight away use Release? Is Archive in xcode4 = Build in xcode3 for the purpose of submission app. If Archive = Build, the icon of the app is very blur in xcode4 organizer. Is that normal? Is there any other additional steps to follow in xcode4 to submit app to appstore. Thanks for any help. =) Xcode 4 makes it easier to submit. As you have discovered, all you have to do is archive. The blurry icon is expected

Xcode 4.5 command line unit testing

余生颓废 提交于 2019-11-28 03:02:23
Having an issue since updating to Xcode 4.5 when running my unit tests via command line. The following is the output i'm seeing when i try to run my tests Unknown Device Type. Using UIUserInterfaceIdiomPad based on screen size Terminating since there is no workspace. /Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:334: note: Passed tests for architecture 'i386' (GC OFF) /Applications/Xcode.app/Contents/Developer/Tools/RunPlatformUnitTests.include:345: note: Completed tests for architectures 'i386' Even though it does say the tests have passed and completed, I don

xcodebuild: simulator or device?

微笑、不失礼 提交于 2019-11-28 02:51:40
How do I specify to xcodebuild (the command line tool) whether I want to build for the simulator or device? An XCode build from the command line looks like: xcodebuild -configuration ${BUILD_TYPE} -target ${TARGET_NAME} -arch ${CPU_ARCHITECTURE} -sdk ${SIMULATOR_OR_IOS_SDK} BUILD_TYPE is something like "Release" or "Debug" (those are the defaults, you may have added others to the project) TARGET_NAME is the name of the target you are building (by default the same name as your project) CPU_ARCHITECTURE is the CPU you are building for, one of: i386 , armv6 , armv7 Use i386 for simulator builds,