xcodebuild

Packaging a Bundle with a static library

≯℡__Kan透↙ 提交于 2019-12-05 21:01:16
问题 I have a static library that includes some xibs. These will basically be the same across projects. I'd like to include the xibs as part of the library. I can include their veiwcontrollers, reference these controllers in the calling project but then there isn't a xib to load. When I right click the xib in the library project, it can't be part of the target. I thought about creating a CFPluginBundle but that creates a new project. I'd loose all of my IBOutlet and IBAction references. What is

CLI: Switch keychains in order to sign an xcodebuild

ε祈祈猫儿з 提交于 2019-12-05 17:01:34
问题 I am trying to switch on a certain keychain, and close another one. I need this because our enterprise & appstore identities are called the same. Right now, I do a "security unlock-keychain" followed by a "security default-keychain" to open the correct keychain and do a "security lock-keychain" on the keychain I wish not to use. But xcodebuild still sees the entries in both keychains and gives up. iPhone Distribution: Company name.: ambiguous (matches "iPhone Distribution: Company name." in

No architectures to compile for (ARCHS=i386, VALID_ARCHS=arm64 armv7 armv7s)

倾然丶 夕夏残阳落幕 提交于 2019-12-05 10:27:55
问题 Preface: I did look at similar questions and none of the answers seemed to fix my problem. I am trying to build my xcode (version 5.1.1) project using: xcodebuild clean build -sdk iphonesimulator7.0 -arch "armv7s" ONLY_ACTIVE_ARCH=NO , when I run this I get: No architectures to compile for (ARCHS=armv7s, VALID_ARCHS=i386 x86_64) as an error. I tried the above command with all of the VALID_ARCHS (rm64 armv7 armv7s) as inputs. So I then tried running this command: xcodebuild clean build -sdk

How to create IPA using terminal [duplicate]

痴心易碎 提交于 2019-12-05 06:29:05
问题 This question already has answers here : iOS builds / ipa creation no longer works from the command line (5 answers) Closed 2 years ago . I'm using XCode 8.3. if I fire this command in Terminal for making an archive as shown below. It shows this kind of error. Can you help me to find out the solution? xcodebuild -configuration Release -exportArchive -exportFormat ipa -archivePath "/Users/Desktop/Demo.xcarchive" -exportPath "/Users/Desktop/Demo.ipa" -exportProvisioningProfile "Demo Development

How do I reference a dependent project built with a different configuration in Xcode?

微笑、不失礼 提交于 2019-12-05 04:06:46
问题 I have two Xcode projects: Super and Sub . Super has a custom configuration: Enterprise . Sub only has the default configurations: Debug and Release . Super has a target dependency on Sub . When I build Super with the Enterprise configuration, Sub builds with its default configuration: Release . This yields the following hierarchy: Build |-Products |-Enterprise-iphoneos |-Super.app |-Release-iphoneos |-libSub.a |-Sub |-Sub.h Clang fails to build because libSub.a and Sub/Sub.h is normally in

Xcode duplicate symbol _main

孤街浪徒 提交于 2019-12-05 01:28:33
I'm getting the following error in Xcode 3.2.1 on Snow Leopard 10.6.2 whenever I try to compile any iPhone application generated by Appcelerator Titanium. However, the build error only appears when I select iPhone simulator on the architecture menu and if I select the iPhone device, I am able to run the app on my device . Further more, the iPhone simulator launches successfully and executes the program directly from the Titanium environment which uses Xcode to build . Why is this happening ? ld: duplicate symbol _main in Resources/libTitanium.a(main.o) and /Users/prithviraj/Documents/project

CocoaPods podspec lint failure - file not found

回眸只為那壹抹淺笑 提交于 2019-12-04 21:41:47
问题 I'm trying to distribute my pod, but I'm having issues with it's validation. When I'm trying to lint against my .podspec I'm getting: - ERROR | [iOS] [xcodebuild] path/to/my/source/file.m:14:9: fatal error: 'KeyValueObjectMapping/DCKeyValueObjectMapping.h' file not found I tried to preserve the path to their framework with different variations like s.preserve_paths = 'KeyValueObjectMapping.framework/*' or s.preserve_paths = '${PODS_ROOT}/Vendor/KeyValueObjectMapping/KeyValueObjectMapping

application is closing just after first launch

坚强是说给别人听的谎言 提交于 2019-12-04 18:16:56
I have build signed the iPhone application with Adhoc provisioning profile,after installing the application directly through Xcode it launched and then closed. I want to know this is correct behavior or something is wrong in my source code? I am using Snow Leopard 10.6.6 version of Mac OS. Please consider the following : restart xCode ensure the adHoc provisioning profile is properly installed on the device using the Organizer. do a clean & build use the organizer summary panel to add application on your device. if still failing, please try to restart your device. if still failing, provide us

xcode command line test with argument passed at launch

北城余情 提交于 2019-12-04 17:45:43
问题 I have small problem with implementing xcodebuild command test at CI. I have tests related to specific device language, in xcode I can set "Arguments Passed On Launch" to -AppleLanguages (language). Can I pass that argument using xcodebuild? My script looks like this xcodebuild -workspace MyApp.xcworkspace -scheme "MyAppTests" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0' test Thanks! 回答1: xcodebuild is for build your app. You can use this command to run your

Push IPA to Device via Command Line (after xcodebuild)?

一世执手 提交于 2019-12-04 17:26:55
问题 Is it possible to push an IPA to a device via the command line? The IPA was built from the command line using xcodebuild and signed with a developer certificate. The device is not jail broken and was provisioned for development. In the case of a Bundle being delivered, I fix it up per Ad-Hoc and App Store IPAs with xcrun. I am aware of fruitstrap. I don't want strip the App Bundle from the IPA (fruitstrap requirement), and I don't want the 'debug hook' provided by fruitstrap. The question is