Closed jknlsn closed 6 months ago
Same here.
@jaderyang-sms and @jknlsn, with the following steps, I can run an empty iOS app on MacCatalyst:
~/Library/Developer/Xcode/DerivedData
.I'm using an M2 MacBook Pro with Xcode 15.4 on macOS 14.4.1.
According to Apple staff in the Apple forum this an issue with Xcode, and the recommendation is to stick to Xcode 15.3.
I do not know if this helps, but reverting to Sentry 8.21.0 seems to fix the issue.
As previously mentioned, this is a bug in Xcode, and we can only wait for Apple to fix the bug and refer to our troubleshooting docs to solve this issue.
Platform
iOS, macOS
Environment
Production
Installed
Swift Package Manager
Version
8.26.0
Did it work on previous versions?
No response
Steps to Reproduce
Building always fails for MacCatalyst initially before succeeding on Xcode 15.4, whereas it succeeds on first try on 15.3.
Steps
https://github.com/getsentry/sentry-cocoa.git
, addingSentry
andSentrySwiftUI
to target.Expected Result
Build succeeds and runs (happens on Xcode 15.3)
Actual Result
Initially fails. Build and run again immediately after, works.
On Xcode 15.4, any time that I clean and then build, it first fails and then will succeed. After this the build will always succeed, unless cleaned in between. This has caused our Xcode Cloud builds that recently updated to using Xcode 15.4 to fail, as they just fail and don't try to build again.
I found this related discussion on the Apple Developer Forums, and added this information there as well, as it may not be able to be fixed but I don't know if there is a workaround that could be implemented. In the meantime I am using Xcode 15.3 for Xcode Cloud.
Are you willing to submit a PR?
No, I haven't figured out a fix!