xcodebuild

“libRestKit.a, file was built for archive which is not the architecture being linked (armv7)”

荒凉一梦 提交于 2019-12-31 03:24:21
问题 I'm trying to use xcodebuild to build a project, but RestKit and GPUImage are giving issues below: ld: warning: ignoring file /project/libGPUImage.a, missing required architecture armv7 in file /project/libGPUImage.a (2 slices) ld: warning: ignoring file /project/libRestKit.a, file was built for archive which is not the architecture being linked (armv7): /project/libRestKit.a Please help! 回答1: Set Build Active Architecture Only to NO for static Library in project target setting. 回答2: I guess

How to programmatically check if a certificate has been revoked?

隐身守侯 提交于 2019-12-30 06:53:09
问题 I'm working on an xcode automated build system. When performing some pre-build validation I would like to check if the specified certificate file has been revoked. I understand that security verify-cert verifies other cert properties but not revokation. How can I check for revokation? I'm writing the build system in Ruby but am really open to ideas in any language. I read this answer (Openssl - How to check if a certificate is revoked or not) but the link towards the bottom (Does OpenSSL

How to launch iOS Simulator in specific language from command line?

风流意气都作罢 提交于 2019-12-29 07:48:14
问题 I need to lauch iOS Simulator that uses specific language using command line. So I found that I can use instruments -w <device> and it is working great, I can set specific device. But how can I run simulator with specific language? I've tried adding -AppleLanguages -AppleLocale but there are some warnings: Instruments Usage Error : Specified target process is invalid: -AppleLanguage thanks! 回答1: To run your app must be installed and located (if not, will open default language) Use this

xcodebuild - how to define preprocessor macro?

老子叫甜甜 提交于 2019-12-29 03:30:47
问题 How can I define a preprocessor macro when using xcodebuild? I need to build my app using a bunch of different configurations, and I would like to do this using a shell script which runs xcodebuild a number of times with different preprocessor macros. 回答1: Cmd + I on the project to open the Info dialog. Then in the "Build" tab, find the "Preprocessor Macros" setting. Add the macros there. ... Where you can find the setting name is GCC_PREPROCESSOR_DEFINITIONS , so you could add GCC

Provide xcodebuild with .mobileprovision file

孤街醉人 提交于 2019-12-29 02:56:11
问题 I am setting up Jenkins for automating iOS builds. Are there any possibility to provide a .mobileprovision file that is not added to the provisioning tool in Xcode to xcodebuild? I know that I can use PROVISIONING_PROFILE and PROVISIONING_PROFILE[sdk=iphoneos*] but they require the provisioning profile to be added to the Organizer. I know that I can do the operation with xcrun. But before running xcrun I must successfully sign the app with xcodebuild. Is there any way that I can just provide

xcodebuild code sign failing with unknown error

我的未来我决定 提交于 2019-12-24 21:08:21
问题 xcodebuild archive -workspace **** -configuration Release -scheme **** -archivePath **** The above shell command is ending with a codesign error below. I have checked the presence of relevant provisioning profiles and certificates in the system. Any help is greatly appreciated. /usr/bin/codesign --force --sign 513C0AFCECE1080F30CC63A1EC79CF25211727EA --entitlements /Users/****/Library/Developer/Xcode/DerivedData/****-avloytojkryrlfcniwothqvllyzi/Build/Intermediates.noindex

xcodebuild error: no provisioning profile matches

六月ゝ 毕业季﹏ 提交于 2019-12-24 17:06:08
问题 I'm trying to build and archive my XCode project using following command: xcodebuild -scheme MyApp -workspace MyApp.xcworkspace clean archive -archivePath build/MyApp xcodebuild -configuration AdHoc -exportArchive -exportFormat ipa -archivePath "build/MyApp.xcarchive" -exportPath "build/MyApp.ipa" -exportProvisioningProfile "afe33cd1-5e6c-47a6-a315-bd442e43ad95" It is building successfully but exporting ipa is failling with following error: error: no provisioning profile matches 'afe33cd1

I am using Xcode 3.2.5. I have iAds running. Confused about about targest, iOs versions

ⅰ亾dé卋堺 提交于 2019-12-24 09:58:52
问题 Trying to keep up with the curve. I'm reading almost too much and is sending me in a tail spin. Is there a one stop link which will tell me what my target should be to run my app on all platforms based on what frameworks I have included? I make heavy use of Mapkit, and want to include iAds. My current apps seem dead on 3G. Does Apple force you to support only the latest iOS? I have no problem with that, but not sure if someone who has and ancient 3G, how do I tell them, NO I don't support

xcodebuild: “Code signing is required” error after upgrading to XCode 8.1 using

亡梦爱人 提交于 2019-12-24 07:08:09
问题 We used automate our builds using the following command: xcodebuild -target 'Unity-iPhone' -configuration Release clean build Everything worked smoothly until I upgraded to XCode 8.1. Now building works using the XCode IDE, but I get the following output when trying to run xcodebuild: Check dependencies No profiles for 'com.company.project' were found: Xcode couldn't find a provisioning profile matching 'com.company.project'. Warning: Multiple build commands for output file /Users/BuildSystem

Xcode: multiple projects, more than one main executable

ぐ巨炮叔叔 提交于 2019-12-24 00:48:04
问题 Hi I'm new to Xcode. I'm trying to learn c++ and I was wondering if it is possible to have multi projects and choose which project should run. I used ms visual studios before and I like how under a solution I can create multiple projects and choose which one is the executable one. Xcode also has targets not exactly sure what they are maybe they play a role? I tried messing around but I constantly have issue because of duplicate mains. I'm going through a chapter and there are case studies. I