Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode Cloud & Prefire #62

Open
ynnckcmprnl opened this issue Jun 7, 2024 · 9 comments
Open

Xcode Cloud & Prefire #62

ynnckcmprnl opened this issue Jun 7, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@ynnckcmprnl
Copy link

ynnckcmprnl commented Jun 7, 2024

I've got Prefire up & running in a package on my own machine. I'm trying to get the tests running on Xcode Cloud but it seems like the snapshots tests aren't run. The plain XCTest included in the package tests is being run though.

I have added a ci_post_clone.sh script which resolved the "PrefireTestsPlugin" is disabled error I initially had. So again, it all seems set up correctly.

Before I dig deeper & post more info, can anyone confirm it has actually worked on Xcode Cloud?

@BarredEwe
Copy link
Owner

Hi, I haven't tried using Prefire with Xcode Cloud. Will try it soon and see how it works.

@ynnckcmprnl
Copy link
Author

Hi, I haven't tried using Prefire with Xcode Cloud. Will try it soon and see how it works.

Any news yet?

@BarredEwe
Copy link
Owner

Hi, I haven't tried using Prefire with Xcode Cloud. Will try it soon and see how it works.

Any news yet?

I can't use Xcode Cloud yet, as I don't have my own developer account 🥲

@ynnckcmprnl
Copy link
Author

I can't use Xcode Cloud yet, as I don't have my own developer account 🥲

Any guesses/hunches why it wouldn't work that might help our own investigation?

@BarredEwe
Copy link
Owner

Any guesses/hunches why it wouldn't work that might help our own investigation?

Found similar problems with other plugins. It seems that Xcode Cloud does not have permission to run the plugin.

realm/SwiftLint#3996

@BarredEwe
Copy link
Owner

Maybe this might help: realm/SwiftLint#3996 (comment)

@borut-t
Copy link

borut-t commented Oct 1, 2024

I have a similar issue on Github Actions. I was able to resolve plugin permission issue, but snapshot tests aren't run. Just the one I have.

Run set -o pipefail && env NSUnbufferedIO=YES xcodebuild test -destination 'name=iPhone 16 Pro,OS=18.0' -scheme 'AppUI' | xcbeautify --renderer github-actions
  
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:21850AAF-7D30-4815-922B-F728672D2AC3, OS:18.0, name:iPhone 16 Pro }
{ platform:iOS Simulator, id:21850AAF-7D30-4815-922B-F728672D2AC3, OS:18.0, name:iPhone 16 Pro }
2024-10-02 07:37:09.911 xcodebuild[23552:132771] [MT] IDETestOperationsObserverDebug: 12.979 elapsed -- Testing started completed.
2024-10-02 07:37:09.911 xcodebuild[23552:132771] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2024-10-02 07:37:09.911 xcodebuild[23552:132771] [MT] IDETestOperationsObserverDebug: 12.979 sec, +12.979 sec -- end
The following build commands failed:
	Running Prefire
(1 failure)
----- xcbeautify -----
Version: 2.11.0
----------------------
Resolving Package Graph
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/SimplyDanny/SwiftLintPlugins
Fetching https://github.com/BarredEwe/Prefire
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Checking out ‘Prefire’ @ 2.9.0
Checking out ‘swift-snapshot-testing’ @ 1.17.5
Checking out ‘SwiftLintPlugins’ @ 0.57.0
Checking out ‘swift-syntax’ @ 600.0.1

When I run this command locally from the terminal, test suite "Test Suite 'PreviewTests'" is executed. On CI is not.

@BarredEwe ☝️

@BarredEwe
Copy link
Owner

Now I'm trying to pay for a developer account and figure out the problem

@BarredEwe BarredEwe added the bug Something isn't working label Jan 17, 2025
@bill-florio
Copy link

the issue still exists with Xcode cloud with Xcode 16.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants