Cannot archive build on Xcode 13 beta 3 #32
-
Describe the bug When running archive build on Xcode 13 beta 3, the build fail since it depends on Combine.framework built by different compiler version.
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 17 replies
-
Hi @d-date! I'm able to successfully build a project that depends on CombineSchedulers in beta 3. The error message you posted makes it sound like you have a custom toolchain selected in Xcode. Can you check the "Xcode > Toolchains" menu and verify that "Xcode 13.0" is selected? The only other thing I can think of is maybe you have some stale build products getting in the way. "Product > Clean Build Folder" could help, or you could try fully deleting the Derived Data folder. |
Beta Was this translation helpful? Give feedback.
-
@stephencelis As you say, I checked that Xcode 13 was selected as the toolchain. I also tried a clean build, but didn't change. |
Beta Was this translation helpful? Give feedback.
-
I am also seeing this error. Although to start I am suspecting beta 3 or maybe something about my workspace configuration more than combine-schedulers per se. I don't think I have any alternative toolchains installed. (The toolchain items don't even appear in the Xcode menu or Preferences > Components.) Deleted derived data. M1 Mac, if it matters. |
Beta Was this translation helpful? Give feedback.
-
Seems to be the same issue: https://developer.apple.com/forums/thread/682285?answerId=682006022#682006022 |
Beta Was this translation helpful? Give feedback.
-
😢 oof, good to know. I'm going to covert this to a discussion since it's not really a CombineSchedulers issue and so that we can continue sharing information about it. |
Beta Was this translation helpful? Give feedback.
-
I also had the issue while trying to profile a TCA iOS15 only app with Xcode 13b3. I've added platform availability in a local copy of
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately, the issue is still present in Xcode 13 beta 4, but Apple is already aware of the issue. Since SPM does currently not allow to replace a specific sub-dependency with a fork, I for now forked:
.platforms: [
.iOS(.v12),
.macOS(.v10_14),
.tvOS(.v12),
.watchOS(.v5)
] and replaced the sub dependency in the package in a fork of: While this is not optimal, it is at least a functioning workaround for now, locally and on the CI. |
Beta Was this translation helpful? Give feedback.
-
I've asked why the "platforms" field had to be removed, but then read the original PR, understood the reason, and deleted my question.
Unfortunately, @maximkrouk had already responded. Here is the response:
Nope, but it can be a part of the app that does support iOS13- and uses it just for iOS13+ features and you won't be able to use it at all if the platform is defined by the package (at least if an app or framework use spm-based modularization)
Anyway it seems like an SPM bug and I have something strange here too https://github.com/MakeupStudio/cocoa-aliases/blob/main/Sources/CocoaAliases/CocoaAlisaes.swift (when building in release mode the compiler cannot find UIViewRepresentable)
|
Beta Was this translation helpful? Give feedback.
-
We just published 0.5.2, which will hopefully resolve the issue. |
Beta Was this translation helpful? Give feedback.
We just published 0.5.2, which will hopefully resolve the issue.