xcodebuild

git error “unable to locate xcodebuild” after a fresh OS X Mavericks upgrade

走远了吗. 提交于 2019-11-28 20:26:02
When I try to run previously working git commands, I get this: dyld: Symbol not found: _sqlite3_intarray_bind Referenced from: /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData Expected in: /opt/local/lib/libsqlite3.dylib in /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch How can I fix this? This works for me sudo xcode-select --switch /Library/Developer

xcodebuild exportArchive: no applicable devices found

ⅰ亾dé卋堺 提交于 2019-11-28 19:08:08
问题 After upgrading to Xcode 8 with iOS 10, I get exactly this error. I am on latest El Capitan and using the following versions of ruby (I updated via rvm, same with 2.0.0 which is system version) and CFPropertyList: Philipps-MacBook-Pro:mobile-sdk prakuschan$ ruby -v ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15] Philipps-MacBook-Pro:mobile-sdk prakuschan$ gem list CF *** LOCAL GEMS *** CFPropertyList (2.3.3) The xcodebuild -exportArchive command is executed in a shell script, and

xcodebuild - how to define preprocessor macro?

折月煮酒 提交于 2019-11-28 18:45:37
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. 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_PREPROCESSOR_DEFINITIONS="foo=bar" to the xcodebuild arguments. You pass GCC_PREPROCESSOR_DEFINITIONS on the

XCode bundle identifier formatting from {PRODUCT_NAME}

♀尐吖头ヾ 提交于 2019-11-28 17:28:40
问题 Assume I have an iPhone application whose Product Name is " My App " (with a space between words) in XCode build settings. In my info.plist , the Bundle identifier is specified as com.mycompany.${PRODUCT_NAME:rfc1034identifier} In the resulting info.plist in the application bundle, the bundle identifier is shown as com.mycompany.My-App . I need it to be com.mycompany.MyApp . How do I change the Bundle Identifier setting so it would convert the product name the way I want? ps. If I change the

xcodebuild not copying file from .app

荒凉一梦 提交于 2019-11-28 17:12:10
问题 I've created a signed .xcarchive file using the xcodebuild command. Inside the .xcarchive is a .app file. Inside the .app is a file called archived-expanded-entitlements.xcent. This file is the key to my problem. I run a different xcodebuild command that creates an .IPA file from the .xcarchive. Creating the IPA fails because the archived-expanded-entitlements.xcent file is missing. The thing is, xcodebuild is creating a temporary directory where it copies over my .app file, and inside THAT

Provide xcodebuild with .mobileprovision file

强颜欢笑 提交于 2019-11-28 17:03:44
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 the provisioning profile file (.mobileprovision) to xcodebuild? Ben Clayton We have a solution for this

xcodebuild - codesign -vvvv says“resource envelope is obsolete”

跟風遠走 提交于 2019-11-28 16:53:55
I've just updated my xcode install to use xcode 6.0.1 in order to start compiling my app for ios8 devices. For some reason I am not able to ever sign the app file correctly that is generated using the following: xcodebuild -project GrantM/GrantM.xcodeproj -configuration Release it compiles the code and appears to be fine, but running: /usr/bin/codesign --verify -vvvv GrantM/GrantM.app give me: Program /usr/bin/codesign returned 1 : [GrantM/GrantM.app: resource envelope is obsolete] Codesign check fails : GrantM/GrantM.app: resource envelope is obsolete checking that the code was signed at all

Xcode with iOS - Creating a library in a way that is easy to run in debug mode, distribute, iterate

我们两清 提交于 2019-11-28 15:51:51
问题 This is for Xcode 4.5.x iOS armv7 armv7s and the sim and specifcially about Xcode project setup / project build setup: I have a project "A" that is an app in the app store. I have a project "B" that is a library that will be used in A as a dependency, but also distributed as a 3rd-party library to other companies to use in their apps. (other companies' 3rd party apps are represented in this case as "Y"). Here are the requirements: Must be able to run "A" in debug mode, and of course debug the

How can I resolve “Error: No developer directory found at /Developer”?

牧云@^-^@ 提交于 2019-11-28 13:46:11
问题 I just upgraded XCode to 4.3.1. I'm using a script to build (and then deploy through Testflight) my app. But I now receive this error: Error: No developer directory found at /Developer. Run /usr/bin/xcode-select to update the developer directory path. I've no /Developer dir in my machine: how can I fix it? 回答1: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 回答2: You could also do this instead ... sudo ln -s /Applications/Xcode.app/Contents/Developer /Developer 回答3:

xcodebuild command in shell script iOS

↘锁芯ラ 提交于 2019-11-28 13:04:31
问题 I have a complete command to deploy the xCode project on real device. i.e xcodebuild -workspace jamesAppV2.xcworkspace -scheme jamesAppV2 -configuration Debug -destination 'platform=iOS,name=Shujaat’s iPad' clean test its working fine using the command line. Todo: I wanted to execute this command via a shell script. here is my complete shell script deploy.sh so for. #!/bin/bash #My First Script #Info to be configured current_path=$(pwd) appName="jamesApp" jamesApp_workspace="jamesAppV2