xcodebuild

Set “OTHER_LDFLAGS” through command line with xcodebuild

五迷三道 提交于 2019-12-18 17:33:53
问题 I have successfully compiled the project through command line .But i want set library(.a) file through command line . It successfully build with below command /Users/Mahen/Documents/workspace/TestingApplication/Test/Test.xcodeproj -configuration Debug build Now I want set Linking .a file through command line. I have try set "OTHER_LDFLAGS" option with -f orce_load /Users/Mahen/Documents/workspace/Test.iOS/build/Debug-iphoneos/libTest.a -lstdc++ But it couldn't load , Can you suggest the right

Building a backwards compatible OS X app, when a new API is present?

非 Y 不嫁゛ 提交于 2019-12-18 15:54:14
问题 I'm trying to upgrade an app (Clarke) to provide 10.6 compatibility. My plan is to use two different code paths depending on the version of OSX in use. On 10.5 it will use one controller, which consists of completely custom code that isn't dependent on any specific Cocoa API. On 10.6 it will use another controller, which wraps the new CoreLocation API in an identical interface, based on the same abstract class. At runtime the app will switch between the controllers by detecting the OS version

How to add “Other Linker Flags” to xcode project using command line?

戏子无情 提交于 2019-12-18 13:10:12
问题 I'm trying to automate building process of xcode project. The problem is that I need to add "Other Linker Flags" when building the project. I can't just add it to the project Build Settings manually, I have to do it using the command line. May be I can edit the project file or configuration file somehow? Any options are good as long as it can be runned as a script. Any ideas? Thanks 回答1: You can do this by specifying an xcconfig file to xcodebuild. For example: echo 'OTHER_LDFLAGS = $(OTHER

How to display compiler output or custom build steps output when building with xcode?

不羁岁月 提交于 2019-12-18 11:42:00
问题 How can I see the output from the compiler of from the custom build steps (pre-action or post-action)? 回答1: Pre-action output at least appears in system.log and is visible in Console.app. 回答2: You'll find (and you can watch during the build) the complete build output in the Log Navigator. That's the right most icon of the small icons just below the Run and Build buttons. 回答3: Per my answer here ( Is it normal for Xcode not to detect if a pre-action failed? ) this is an issue that's been

How do I force Xcode to rebuild the Info.plist file in my project every time I build the project?

女生的网名这么多〃 提交于 2019-12-18 10:34:28
问题 Apparently the file gets cached, so it only gets built when it gets changed. I have environment variables set to increment my version number though, and such, and update them independently of the plist (in the project build settings, actually). Is there a script that I can use as a script build phase that will force the Info.plist to update? Some other convenient way? 回答1: Select 'Edit Scheme', then select 'Build' from the control on the left. Then, add a Pre-actions step, ensure the scheme

Debugging exception thrown in Objective-C and Xcode

回眸只為那壹抹淺笑 提交于 2019-12-18 10:20:47
问题 I am a long time Microsoft developer and I am new to iPhone development using Xcode. So, I am reading a book and going through examples trying to teach myself how to write an iPhone application using Objective-C. All has been good so far, however, once in a while I run into the generic ' objc_exception_throw ' message at runtime. When this happens, the source of this exception is very difficult to find. After some trial and error I found my answer. One of the parameters was misspelled. As you

Is there a way of automatically writing custom values to the bundle's .plist during a build phase?

大城市里の小女人 提交于 2019-12-18 08:39:55
问题 I'm setting up a CI system using Jenkins and am using agvtool to bump and set marketing & technical versions at build time. In addition to setting the versioning at build time it would be very useful to set a couple of of custom values in the .plist. Is this possible? 回答1: You can edit the Info.plist at build time by taking advantage of the "Pre-actions" options to run a script. Here's an example script that increments a Key in the Plist called UserDefinedVersionNumber #!/bin/sh #Grabs info

Set xcode “build setting” from terminal?

倖福魔咒の 提交于 2019-12-18 04:49:06
问题 Is there anyway that I can change a setting in xcode without opening xcode? I have an automated xcodebuild / xcrun process going on but I need to change 1 value: Targets > Select your target > Build Settings > Code Signing Resource Rules Path add : $(SDKROOT)/ResourceRules.plist I can't find any file where I might put this line... 回答1: What You can do is to run: xcodebuild -target <target> -configuration <configuration> -showBuildSettings This command shows all the settings that are filled

xcode 7.2 Could not build Objective-C module

不问归期 提交于 2019-12-18 03:35:07
问题 I have just updated my Xcode to version 7.2. Now I try to build a framework from command line using xcodebuild but have this error .... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h:6:9: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/System/Library/Frameworks

install application in iphone device through command line

流过昼夜 提交于 2019-12-17 23:16:19
问题 I'm using xcodebuild install -alltargets -iphoneos4.2 -activeconfiguration provisioning_profile=path_of_my_provisioningprofile code_sign_identity=identity . This command is building my app and i am getting build file (.app) also. But how to install the app in to device from command line. Please help me in this issue. 回答1: Fruitstrap is no longer maintained, for a more up to date project checkout the fork by PhoneGap called ios-deploy . To install run: npm install -g ios-deploy Here are some