xcodebuild

Xcode 10 build fail rm permission denied in /bin/sh/

霸气de小男生 提交于 2019-12-13 03:47:45
问题 I recently update my system to Xcode: 10 OSX : Mojave 10.14 For few days my iOS development works fine, but suddenly start facing following issues. dyld: Library not loaded: @rpath/Appsee.framework/Appsee Referenced from: /Users/a.b.ak1b/Library/Developer/CoreSimulator/Devices/2223E5BD-215F-48D7-8649-2D63ECBAE2B6/data/Containers/Bundle/Application/59E09AD0-ADAB-4221-A334-70F71DC6AC0B/MyApp.app/MyApp Reason: image not found But this issue was fixed by changing Xcode -> File -> Workspace

How to successfully run iOS simulator from Bamboo agent script

无人久伴 提交于 2019-12-13 01:28:49
问题 I'm trying to run tests using xcodebuild through a Bamboo job script task. It opens the simulator, but it stays black and nothing happens, and the script fails due to timeout. Running the identical xcodebuild script goes fine via terminal. Here's the only related log message I was able to find: Unable to connect to SimulatorBridge Simulator[30414] <Error>: Unable to determine device. Things I've already tried: removing simulator and adding new ones checking that bamboo agent is running under

Crash on Startup: Xcodebuild's Archive command adds symbolic links to frameworks in place of actual files

余生长醉 提交于 2019-12-12 13:54:22
问题 I have a Jenkins CI setup where xcodebuild would be run to produce the IPA files for my iOS project. Lately we have made a change to cocoapods setup that causes the app to crash at startup. The change was the decision to build the pods as frameworks instead of static libraries. Now when I open the generated .app folder and peek inside, I could see a Frameworks directory with each of the pods inside. More notably, the actual frameworks didn't make it to these folders. Instead, they are

iOS: XCode 4.4.1: xcodebuild error - Unable to read diagnostics from file

ε祈祈猫儿з 提交于 2019-12-12 03:56:32
问题 So I would like to use xcodebuild in Terminal to create a build from a test application (called RunTeszt1). The app is an iOS single view application with nothing in it, just created and closed. When I this from the Terminal, the build fails. xcodebuild -target "RunTeszt1" -sdk "$iphoneos5" -configuration Debug The error is: Unable to read diagnostics from file "/var/folders/6s/cjw35hhs5lb6wpnx9m8lr2km0000gn/C/com.apple.Xcode.501/SharedPrecompiledHeaders/RunTeszt1-Prefix

How can enforce `qmake` to contain `ProvisioningStyle` $ `DevelopmentTeam` fields in `project.pbxproj`?

三世轮回 提交于 2019-12-12 03:53:46
问题 I am using Qmake command line to build my app for iOS and I am struggling to sign my app with xcodebuild because the MyApp.xcodeproj/project.pbxproj that qmake is generating does not the contain the following fields at all ProvisioningStyle DevelopmentTeam How can enforce qmake to contain ProvisioningStyle $ DevelopmentTeam fields in project.pbxproj ? I dont need to have any certain value to be set into the 2 fields. Only, need the fields to be present in appropriate places in project.pbxproj

Xcode failed with exit code 71

妖精的绣舞 提交于 2019-12-12 03:48:03
问题 I tried to build Qt iOS project but got this issue. Now I try to build this project in the Xcode but get this error: error: can't exec '/Applications/Xcode' (No such file or directory) Command /Applications/Xcode failed with exit code 71 How can I resolve it? 回答1: sudo xcode-select -switch /Applications/Xcode.app/ and recreating the project helped. 来源: https://stackoverflow.com/questions/36708016/xcode-failed-with-exit-code-71

Error building my app to my ipod touch:building with 'Targeted Device Family' set to iPhone only ('1') not supported with SDK 'Device - iPhone OS 3.2

ぃ、小莉子 提交于 2019-12-12 01:57:43
问题 So I finished coding my app, and downloaded the development profile n all that good stuff with the entitlements, etc; but I get these warnings: ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics, file was built for i386 which is not the architecture being linked (armv7) ld: warning: in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk/System/Library

How to use SwiftUI in framework

大兔子大兔子 提交于 2019-12-11 14:29:18
问题 I'm using SwiftUI inside my binary framework, I added SwiftUI.framework as Optional in Embedded Binaries and use @available so it compiles just fine with deployment target iOS 9. However I cannot use it with xcodebuild , my commands : xcodebuild clean archive \ -project "${PROJECT_NAME}.xcodeproj" \ -scheme ${1} \ -configuration ${CONFIGURATION} \ -destination "${2}" \ -archivePath "${3}" \ SKIP_INSTALL=NO \ OBJROOT="${OBJROOT}/DependentBuilds" \ BUILD_LIBRARY_FOR_DISTRIBUTION=YES | xcpretty

Xcode-Ui-Test: Can i specify a particular test that i want to run from terminal

荒凉一梦 提交于 2019-12-11 11:48:35
问题 i wrote a ui test in new xcode 7 with swift 2.0. I have a script, that i run from terminal to execute the ui-tests. Here is the command line: xcodebuild -workspace App.xcworkspace -scheme "App-Scheme" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.1' test The problem is, this command line run all the test-cases into my test. How is it possible the specify a particular test? Any ideas? Cheers. 回答1: I post this impovement to Apple. As i know, Now the only way - to

Archive multiple IOS xcode target in command line

匆匆过客 提交于 2019-12-11 09:28:07
问题 I have an iOS Xcode project that has several targets. The number of targets in the project will continue to grow as the project progresses and expands. When I create a new version, it is a pain to have to go through each target and manually create the Archive. I looked into how to archive multiple targets using the command line, but none of the answers spoke to what I was trying to accomplish. Any help and guidance is appreciated. I believe that the following partial command is part of the