bitrise-steplib / steps-xcode-build-for-simulator

MIT License
4 stars 18 forks source link

Failed to get scheme (failed to fetch project's targets, error: Failed to found scheme (example) in project) build target dir, error: %!s(MISSING) #7

Closed odemolliens closed 5 years ago

odemolliens commented 5 years ago

running on: bitrise.io id: xcode-build-for-simulator version: 0.9.2 collection: https://github.com/bitrise-io/bitrise-steplib.git toolkit: go time: 2018-12-14T02:00:56-08:00 xscheme is shared (project is able to build)

- ProjectPath: example/ios/example.xcodeproj
- Scheme: example
- Configuration: Debug
- ArtifactName: 
- XcodebuildOptions: 
- Workdir: /Users/vagrant/git
- OutputDir: /Users/vagrant/deploy
- IsCleanBuild: false
- OutputTool: xcpretty
- SimulatorDevice: iPhone 6s Plus
- SimulatorOsVersion: latest
- SimulatorPlatform: iOS
- VerboseLog: false

Step determined configs:
- xcodebuildVersion: Xcode 10.1 (Build version 10B61)

Checking if output tool (xcpretty) is installed
- xcprettyVersion: 0.3.0

Simulator info
Latest simulator for iPhone 6s Plus = B4953501-E313-4A8E-8012-452CEA2B4D01

Running build
[02:01:10] $ set -o pipefail && xcodebuild "-project" "example/ios/example.xcodeproj" "-scheme" "example" "-configuration" "Debug" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "PROVISIONING_PROFILE_SPECIFIER=" "PROVISIONING_PROFILE=" "DEVELOPMENT_TEAM=" "-destination" "id=B4953501-E313-4A8E-8012-452CEA2B4D01" "build" | xcpretty

(...)

▸ Building library xxxx.a
▸ Linking ExampleApp
▸ Processing Info.plist
▸ Running script 'Bundle React Native code and images'
▸ Generating 'ExampleApp.app.dSYM'
▸ Copying /Users/vagrant/Library/Developer/Xcode/DerivedData/example-byuuzjvqjuqjwkeyxardezzwcbkf/Build/Products/Debug-iphonesimulator/xxxx.framework
▸ Touching ExampleApp.app (in target: example)
▸ Build Succeeded

Copy artifacts from Derived Data to /Users/vagrant/deploy
Failed to get scheme (failed to fetch project's targets, error: Failed to found scheme (example) in project) build target dir, error: %!s(MISSING)
|       

My iOS project is not a root level, does it could lead to this issue? How to disable copy artifact to make it works?

odemolliens commented 5 years ago

running on: bitrise.io id: xcode-build-for-simulator version: 0.9.3

▸ Touching ExampleApp.app (in target: example)
▸ Build Succeeded
Copy artifacts from Derived Data to /Users/vagrant/deploy
Failed to export the artifacts, error: failed to parse scheme's build target dir: build/
BirmacherAkos commented 5 years ago

Hi @odemolliens !

Thanks for the report.

We will release a new patch for the step today which should fix the export issue. https://github.com/bitrise-steplib/steps-xcode-build-for-simulator/releases/tag/0.9.4

Sorry for the inconvenience.

alexiscreuzot commented 5 years ago

I have an issue which seems related :

▸ Build Succeeded

Copy artifacts from Derived Data to [...]
Failed to get scheme (failed to parse workspace (example.xcworkspace) build settings, error: unknown build settings: 2018-12-26 13:29:05.545 xcodebuild[14191:251334]  DTDeviceKit: deviceType from 00008006-0016436134E2002E was NULL) build target dir, error: %!s(MISSING)
fehersanyi-bitrise commented 5 years ago

Hy @odemolliens @kirualex

Did the new step version work?

alexiscreuzot commented 5 years ago

@fehersanyi-bitrise I was using the 0.9.4 version when I tried, so I would say no unless there is another newer version?

bitce commented 5 years ago

@kirualex Can you please send us a build URL where this issue is occurring for you?

BirmacherAkos commented 5 years ago

Hi @kirualex !

Thanks for the report. It seems it is a different issue (it cause a similar problem). The Tooling Team is working on the fix.

odemolliens commented 5 years ago

Hello, issue is fixed on my side !

Thanks !

dreamdev21 commented 4 years ago

Hi @BirmacherAkos @odemolliens I have similar issue here. What is your solution?

Copy artifacts from Derived Data to /Users/vagrant/deploy
Failed to get scheme (failed to parse workspace (ios/LovedWealth.xcworkspace) build settings, error: unknown build settings: Command line invocation:) build target dir, error: %!s(MISSING)
|                                                                              |
+---+---------------------------------------------------------------+----------+
| x | xcode-build-for-simulator@0.9.2 (exit code: 1)                | 10.4 min |
+---+---------------------------------------------------------------+----------+
| Update available: 0.9.2 -> 0.11.2                                            |
|                                                                              |
| Release notes are available below                                            |
| https://github.com/bitrise-steplib/steps-xcode-build-for-simulator/releases  |
| Issue tracker: ...com/bitrise-steplib/steps-xcode-build-for-simulator/issues |
| Source: https://github.com/bitrise-steplib/steps-xcode-build-for-simulator   |
+---+---------------------------------------------------------------+----------+
BirmacherAkos commented 4 years ago

Hi @webmasterdragon 👋

From the log you've attached it seems you are using the 0.9.2 version of the step which is not the latest version. Could you please try it again with a newer version ( 0.11.2 )?