build-settings

Xcode build setting “Build Products Path” (CONFIGURATION_BUILD_DIR) is a lie?

吃可爱长大的小学妹 提交于 2019-12-09 12:11:53
问题 If I create a new application project, the build settings look something like this: It claims to be using a build dir build/Debug-iphoneos . I assume this is relative to the project directory? In reality, the project is compiled to the "derived data" directory, under ~/Library/Developer/Xcode/DerivedData/CryptoTest2-abc... So what is going on here? Is this build setting simply ignored? What is the build setting that controls the output directory? 回答1: This build setting is actually relative

Asserts are hit in production build causing crashes

☆樱花仙子☆ 提交于 2019-12-09 11:49:50
问题 I have several assert(condition, "message") statements in my project. They are used to check invariant conditions during development . I thought they would be ignored in production/release build (as stated in this answer). They are not. Instead they cause crashes during TestFlight testing. When I comment asserts the app does not crash. Something usually gets wrong a bit but it does not crash. Can it be something with my build settings? All my archive schemes use release configuration: The

Want to downgrade from an Universal app to just an ipad app

筅森魡賤 提交于 2019-12-07 21:48:42
问题 I originally wanted to make a universal app, but now scopes have been changed and I am stuck with a universal app, now all I want is an iPad app. So I went and changed the Targeted Device Family to just 'iPad' (or 2) but when I submit the app it claims I am still stuck in Device Family '1,2' or Universal, and is asking for iPhone screen shots. I have looked high and low to downgrading from universal app to ipad No real results. Also, it says minimum OS required 3.1.3, when I'd rather have it

Want to downgrade from an Universal app to just an ipad app

梦想与她 提交于 2019-12-06 10:36:27
I originally wanted to make a universal app, but now scopes have been changed and I am stuck with a universal app, now all I want is an iPad app. So I went and changed the Targeted Device Family to just 'iPad' (or 2) but when I submit the app it claims I am still stuck in Device Family '1,2' or Universal, and is asking for iPhone screen shots. I have looked high and low to downgrading from universal app to ipad No real results. Also, it says minimum OS required 3.1.3, when I'd rather have it set to 3.2 (maybe this will solidify it's existence as an iPad only app). Thank you in advance! update:

“Objective-C Bridging Header” entry in Build Settings does not appear in Xcode 8.3

时光毁灭记忆、已成空白 提交于 2019-12-05 10:14:49
I need to add some Objective-C files of a library to my project, and I created the MyProject-Bridging-Header.h file myself. But now I'm not able to set its path because in the project's Build Settings I don't find the Objective-C Bridging Header entry. Is somebody else experiencing the same? How could I solve this? In Build Setting choose "all" instead of "basic" Alexander Usually when you had an Objective-C/Swift project and have added new Swift/Objective-C class file Xcode asks whether you want to create Bridging Header or not. If the option to create Bridging Header automatically f.e. has

How to delete user-defined build settings in Xcode 4.3.1

断了今生、忘了曾经 提交于 2019-12-05 08:46:28
问题 I have created several user-defined build settings in Xcode 4.3.1. I no longer need these settings and want to delete them, but there doesn't seem to be a way to delete them! I am aware that these are stored in the project settings (project.pbxproj) file located within the xcodeproj file. But I don't want to edit these in a text editor as there are all sorts of repetitions and guids which I don't understand. Any suggestions on how I can do this within Xcode? (or have they forgotten to add a

How to set default compiler options for XE2?

柔情痞子 提交于 2019-12-04 00:58:01
问题 I am unable to figure out how to change default build/compile settings. The little default checkbox in the lower left of the project options dialog is gone. The documentation states: The Default checkbox that appeared at the lower edge of many Project Options pages has been removed from the product. If you want to specify options as the default for multiple projects, the suggested alternative is to use option sets instead. I'm going round and round about "Options Sets", "Configuration Manager

How to delete user-defined build settings in Xcode 4.3.1

隐身守侯 提交于 2019-12-03 22:08:09
I have created several user-defined build settings in Xcode 4.3.1. I no longer need these settings and want to delete them, but there doesn't seem to be a way to delete them! I am aware that these are stored in the project settings (project.pbxproj) file located within the xcodeproj file. But I don't want to edit these in a text editor as there are all sorts of repetitions and guids which I don't understand. Any suggestions on how I can do this within Xcode? (or have they forgotten to add a "delete" button) Just figured this out myself: you need to make sure you're at the right scope to be

Xcode build setting “Build Products Path” (CONFIGURATION_BUILD_DIR) is a lie?

拜拜、爱过 提交于 2019-12-03 16:13:33
If I create a new application project, the build settings look something like this: It claims to be using a build dir build/Debug-iphoneos . I assume this is relative to the project directory? In reality, the project is compiled to the "derived data" directory, under ~/Library/Developer/Xcode/DerivedData/CryptoTest2-abc... So what is going on here? Is this build setting simply ignored? What is the build setting that controls the output directory? This build setting is actually relative to the Derived Data setting. You can change this setting if you go to Xcode > Preferences > Locations, and

Asserts are hit in production build causing crashes

倖福魔咒の 提交于 2019-12-03 15:32:32
I have several assert(condition, "message") statements in my project. They are used to check invariant conditions during development . I thought they would be ignored in production/release build (as stated in this answer ). They are not. Instead they cause crashes during TestFlight testing. When I comment asserts the app does not crash. Something usually gets wrong a bit but it does not crash. Can it be something with my build settings? All my archive schemes use release configuration: The asserts are in Cocoa Touch Framework project, that is used from custom keyboard extension. All the