xcodebuild

Using CocoaPods stops iOS build using ionic Project

雨燕双飞 提交于 2019-12-11 05:14:13
问题 I have created an ionic Project. I build the app and its working perfectly using Ionic CIL. Now using cocoapods, I created a pod file and loadded the required pods and did pod install. Now when I try to run ionic run/build ios, I get this error: ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Error code 65 for command: xcodebuild with args: -xcconfig Command failed with exit code 2 Please help me ... 回答1: The issue that causes

Error: “no such module <Swift Cocoapod name>” with Jenkins

ぃ、小莉子 提交于 2019-12-10 17:55:48
问题 I'm trying to setup Jenkins slave, to build my Swift project that uses a Swift pod called "Freddy". The problem is the build failed with error: error: no such module 'Freddy' This is my Podfile: platform :ios, '8.0' use_frameworks! target 'MyProject' do pod 'AFNetworking', '~> 3.0' pod 'Freddy' end CocoaPods version 0.39.0 Xcode 7.2.1 ( no problems while building from Xcode directly ) PS. Same problem had happened with Alamofire pod before I replaced it with AFNetworking. PSS. Jenkins

Why does xcodebuild give different build results than XCode UI

耗尽温柔 提交于 2019-12-10 15:57:13
问题 I have a series of projects within a workspace, and trying to use the following type of command to build them via the command line: "Xcodebuild -project XXX" or "Xcodebuild -workspace XXX -scheme YYY" Some of my projects build fine but others give strange errors, like "'XXX' for instance message does not declare a method with selector" or "ld: library not found for -lMyLibrary" However all these projects build fine from within the XCode UI without issues. Based on this is seems that the

Free Provisioning Profile with Qt

本秂侑毒 提交于 2019-12-10 12:18:10
问题 I know that I can use free iOS Provisioning Profile in Xcode (via Fix Issue button) for testing. I also know that Qt uses xcodebuild for iOS projects. But how can I create and use free Provisioning Profile in the iOS Qt project? 回答1: Depending on your build settings, qmake will output an .xcodeproj file for you which you can open in Xcode. Building and running this project on a physical device with your Apple Developer account added under Preferences -> Accounts will cause a development

XCodeBuild -exportArchive wont allow me to specify filename

六眼飞鱼酱① 提交于 2019-12-10 04:18:55
问题 I'm busy working on a Jenkins build that will be building iOS applications. I have managed to create an archive successfully with this command: xcodebuild archive -archivePath build/app.xcarchive Now I'm trying to export that archive with specifying the output file name , but can't get this to work.In the example below I want an output file called app.ipa, but all I get is a folder called app.ipa with an ipa file inside name .ipa xcrun xcodebuild -exportArchive -exportPath build/app.ipa

Xcode duplicate symbol _main

感情迁移 提交于 2019-12-10 02:04:25
问题 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 ?

How to get a distribution app when using xcodebuild -exportArchive (Xcode8.3, Auto Signing)?

两盒软妹~` 提交于 2019-12-10 01:19:35
问题 After update Xcode8.3, the options ' -exportSigningIdentity ', ' -exportProvisioningProfile ' and ' -exportFormat ' are removed from ' xcodebuild -exportArchive '. When i try to get a distribution app, i get the error below: xcodebuild: error: invalid option '-exportProvisioningProfile'. So how can i get distribution MyApp.ipa from MyApp.xcarchive, when the project has set Automatic Signing Enabled? Automatic Signing 回答1: Sounds like you want to create an IPA on the command line from an

xctool fails to clean my iOS project

假装没事ソ 提交于 2019-12-09 17:55:59
问题 I'm using xctool (v0.1.16) for an iOS project, which is configured as follows: a workspace two targets Project and ProjectTests two schemes Project and ProjectTests I have a .xctool-args file with the workspace and Project scheme configured. I run xctool build and xctool -scheme ProjectTests -sdk iphonesimulator test successfully. However, I run xctool clean and the following happens: 1st it runs xcodebuild clean Project successfully 2nd it runs xcodebuild build clean which fails with the

Define schemes in an xcode phonegap project from terminal

此生再无相见时 提交于 2019-12-09 17:02:47
问题 I'm writing a script to archive the iOS portion of a phonegap project. The script wipes the directory that the project is in and then repopulates it using the latest code from source control. I then run $ phonegap local build ios in order to build the project. However in order to archive the project I need its schemes to be defined. I have tried building the project from the command line but I get the message ** BUILD FAILED **. As of right now I have the code open the xcode project (the only

Xcode 4.5 Command Line Tools - xcode-select issue

扶醉桌前 提交于 2019-12-09 14:18:05
问题 After installing Xcode CLT 4.5.1 on OS X 10.8.2, I'm having issues installing native ruby gems which need to compiled. The output error is the same as with running xcrun -find: xcode-select: Error: No Xcode is selected. Use xcode-select -switch , or see the xcode-select manpage (man xcode-select) for further information. To which CLT location should xcode-select point to, since it's no longer at /Developer? Edit: I don't have the Xcode app installed, only CLT. 回答1: The new location seems to