bitrise-steplib/steps-xcode-archive

iOS - Using xcframework embedded returns - is unavailable: cannot find Swift declaration for this class

fabriciomasiero opened this issue · 3 comments

/Users/vagrant/git/Shared/View/ContentView.swift:30:20: cannot find type 'Station' in scope
let stations: [Station]

Bitrise Build Issue Report template

Description of the issue

I have been trying to build my project in Swift using Xcode with an xcframework inside the bitrise but I have been encountering problems.

After configuring my workflows, when compiling I get some errors like: is unavailable: cannot find Swift declaration for this class - From the files that are inside my xcframework.

When running the bitrise on my local machine, everything worked perfectly.

Environment:

Works fine on my MacBook, I'm using bitrise CLI, and works well.

Do not work on bitrise.io

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

Xcode Archive & Export for iOS v3.2.x

Reproducibility

Just let it build and when goes through Xcode Archive I received the error

  • Does a "Rebuild" help? (You can trigger a rebuild from the Build's page, by clicking the "Rebuild" button in the top right corner of a finished build) : NO
  • Does a rebuild without caches help? (You can remove the Cache:Pull and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings tab of the app. : NO
  • Does the issue happen sporadically, or every time? : YES
  • Does upgrading the build Step to the latest version help? : NO
  • When did the issue start? : Always happened

Local reproduction

If I run it locally, works perfectly

Build log

https://app.bitrise.io/build/41f74f89fe19d9a2#?tab=log

Hello @fabriciomasiero 👋

Have you tried rebuilding in a clean git environment?
Please follow these steps:

  1. open your Terminal / Command Line
  2. type in: cd /tmp
  3. clone your repository with: git clone REPOURL ./quick-repo-test --branch BRANCH-YOU-WANT-TO-TEST
  4. example: git clone https://github.com/bitrise-io/bitrise.git ./quick-repo-test --branch master
  5. cd ./quick-repo-test

If this is done and it works without issues, please send us the results 🙂

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant.
This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it.
If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

I'll close this issue as it doesn't seem to be relevant anymore.
We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.