Shared Schema not seen even its shared (No gitignore file)

Bitrise Build Issue Report template

Description of the issue

_Now in order to make the build work, I had to create a new environment variable, to point to the xcworkspace and the original one to point to the xcodeproj. I feel that this is totally a wrong way and not a clean one.

If I point to the xcworkspace only I get this error:
Failed to list shared schemes, error: contents.xcworkspacedata does not exist at: pharmahub/pharmahub.xcworkspace/contents.xcworkspacedata

And yes I am sharing my schemes and they are not ignored

and If I point to xcodeproj then Ill get: framework not found Alamofire

Which make sense because its trying to run the tests from the xcodeproj which is wrong.

Now my question is how can I make recreate-user-schemes step work with pointing to the xcworkspace and seeing the shared schemas.

Because now its working but I feel this is wrong and kinda of workaround.

Thanks
_

Environment:

Where did the issue happen?

Which build Step causes the issue and which version of the step?

recreate-user-schemes

Build log

±-----------------------------------------------------------------------------+

| (1) git-clone@4.0.14 |
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@4.0.14 | 9.92 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (2) cache-pull@2.0.1 |
±-----------------------------------------------------------------------------+
| id: cache-pull |
| version: 2.0.1 |
| collection: GitHub - bitrise-io/bitrise-steplib: New Bitrise StepLib |
| toolkit: go |
| time: 2019-02-14T03:26:53-08:00 |
±-----------------------------------------------------------------------------+
| |
2019/02/14 03:26:56 Cache pull…
2019/02/14 03:26:56 Failed to get download url, error: Build cache not found. Probably cache not initialised yet (first cache push initialises the cache), nothing to worry about :wink:
WARN[03:26:56] Step (cache-pull@2.0.1) failed, but was marked as skippable
| |
±–±--------------------------------------------------------------±---------+
| ! | cache-pull@2.0.1 (exit code: 1) | 5.23 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-cache-pull · GitHub |
| Source: GitHub - bitrise-steplib/steps-cache-pull: Download Cache |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (3) Do anything with Script step |
±–±--------------------------------------------------------------±---------+
| ✓ | Do anything with Script step | 2.08 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (4) certificate-and-profile-installer@1.10.1 |
±–±--------------------------------------------------------------±---------+
| ✓ | certificate-and-profile-installer@1.10.1 | 7.41 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (5) recreate-user-schemes@1.0.2 |
±–±--------------------------------------------------------------±---------+
| x | recreate-user-schemes@1.0.2 (exit code: 1) | 4.76 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: …hub.com/bitrise-steplib/steps-recreate-user-schemes/issues |
| Source: GitHub - bitrise-steplib/steps-recreate-user-schemes |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (6) cocoapods-install@1.7.2 |
±–±--------------------------------------------------------------±---------+
| - | cocoapods-install@1.7.2 | 1.88 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (7) xcode-test@2.1.1 |
±–±--------------------------------------------------------------±---------+
| - | xcode-test@2.1.1 | 4.37 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (8) deploy-to-bitrise-io@1.3.19 |
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.3.19 | 6.85 sec |
±–±--------------------------------------------------------------±---------+
â–¼
±-----------------------------------------------------------------------------+

| (9) cache-push@2.0.5 |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2.0.5 | 1.58 sec |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | activate-ssh-key@4.0.3 | 5.02 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | git-clone@4.0.14 | 9.92 sec |
±–±--------------------------------------------------------------±---------+
| ! | cache-pull@2.0.1 (exit code: 1) | 5.23 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: Issues · bitrise-steplib/steps-cache-pull · GitHub |
| Source: GitHub - bitrise-steplib/steps-cache-pull: Download Cache |
±–±--------------------------------------------------------------±---------+
| ✓ | Do anything with Script step | 2.08 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | certificate-and-profile-installer@1.10.1 | 7.41 sec |
±–±--------------------------------------------------------------±---------+
| x | recreate-user-schemes@1.0.2 (exit code: 1) | 4.76 sec |
±–±--------------------------------------------------------------±---------+
| Issue tracker: …hub.com/bitrise-steplib/steps-recreate-user-schemes/issues |
| Source: GitHub - bitrise-steplib/steps-recreate-user-schemes |
±–±--------------------------------------------------------------±---------+
| - | cocoapods-install@1.7.2 | 1.88 sec |
±–±--------------------------------------------------------------±---------+
| - | xcode-test@2.1.1 | 4.37 sec |
±–±--------------------------------------------------------------±---------+
| ✓ | deploy-to-bitrise-io@1.3.19 | 6.85 sec |
±–±--------------------------------------------------------------±---------+
| - | cache-push@2.0.5 | 1.58 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 49 sec |
±-----------------------------------------------------------------------------+
Submitting anonymized usage informations…
For more information visit:
bitrise-plugins-analytics/README.md at master · bitrise-io/bitrise-plugins-analytics · GitHub
exit status 1

Hi @reasonal!

Sorry to hear about the issue, can you please include a build URL we could look into?

Any updates for our case ?

Hello there!

Could it be that the xcworkspace file is at ./pharmahub.xcworkspace? in the root folder of the project?

Yes of course. The .xcworkspace is in the same path of .xcodeproj
How would this affect the shared schema problem ?

Right now I want using just .xcworkspace to make the project build normally. I dont think I should make two environment variables one to look at the project file and the other would look at the workspace. One is used for creating schemas and the other for testing. I think this is wrong approach. What would I do If I have a project that has pods normally ?

Thanks

Hey sorry for the late reply.
were you able to solve the issue since? if not, the step fails for a missing file contents.xcworkspacedata
does it exist i the project?

Hi,

Yes contents.xcworkspacedata exists inside the .xcworkspace

Hey,

Could you change pod install and recreate user schemes?
in a lot of the cases the xcodeworkspace file is generated by cocoapods, so I guess it may not be present :thinking:

Yeah I have the xcodeworkspace. This is how I open the project. Acutallly one of the steps in the pipeline is pod install

Could you please send me an url where the cocoapods step run before the recreate use schemes?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.