-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
"Building universal frameworks with common architectures is not possible." error #3146
Comments
Can you clear DerivedData and try again? |
Hi @tmspzz The issue is still there after clearing DerivedData. You can reproduce it by cloning the library: and running |
Hi @tmspzz Any updates? Were you able to reproduce the issue? |
@arielelkin No sorry, I'm not currently looking into this |
I'm also encountering this while trying to build an existing project using Alamofire 5.4.1:
carthage 0.37.0 |
Hey @arielelkin. I've encountered a similar problem and it is not the perfect solution, but you can use the same workaround as described here https://github.com/Carthage/Carthage/blob/master/Documentation/Xcode12Workaround.md to fix this problem. Cheers |
I have the same issue: carthage 0.37.0 Does it not work at all with Apple Silicon? |
I have the same problem with Tesseract-OCR-iOS. Carthage 0.37.0 |
Using this script worked for me (I was using it for the original issue, tried to build without it and got this problem; went back to the script and everything worked 🤷🏻♂️). |
@dbmrq Do you have a Mac M1? |
Nope! And I just found out that while Carthage compiles the frameworks using the script I mentioned, the resulting frameworks do not work on the project with the latest version of Xcode! :( |
Same problem trying to build Alamofire. |
carthage.sh:
|
The above is working with xcode 12.x. Just tried with XC13 beta on macOS 12 Monterey Beta:
and it does not work anymore, giving lipo errors. I tried adding also this to the temporary xcconfig but with no luck:
not sure if the needed variable name still follows previously known patterns:
Has anyone tried this? |
I changed my carthage.sh to match Xcode 13 as @gotev suggested:
This worked for me on macOS 11.6 using Xcode Version 13.0 beta (13A5154h) |
I also confirm it now works on xcode 13.0 |
Tried the version of the script of @mkotzjan with Xcode 13.0 and getting " and getting: "The file “Cartfile.resolved” couldn’t be opened because there is no such file.". Any ideas how to overcome this?
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Poke |
This is still an issue for me on an M1 Mac. |
@nrj I do not have a M1 for testing. Does the solution I posted before work for you? probably not since the architecture differs... |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still happening. Should I commit to using the workaround script indefinitely? Based on the ongoing breakage and the lack of recent updates, I'm concerned that Carthage may be sunset soon. Is it a good idea to begin using it? |
Отправлено из Yahoo Почты для Android
сб, 16 апр. 2022 в 14:04 ***@***.***> написал(-а):
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
This is still a problem with a fresh install of Xcode 13 on ARM Macs. |
Since my last post here, all the projects on which I'm working have been fully switched to SPM, so I sunsetted Carthage. A great experience so far with SPM. Specially from Swift 5.5 onwards, things have been vastly improved. Carthage has been a huge part of my day by day for a long time and served its purpose very well, allowing me to have clean projects and to stick to apple standards more easily, without messing around. Carthage also made migration to SPM easier to do. A big thanks to this community and kudos to all the people which contributed to and runs this project. |
I later read the README that says "and require XCFrameworks when building on an Apple Silicon Mac" which does fix the issue (while causing others.) |
Bye, Carthage! It was always a pain to use. Switching all projects to SwiftPM. |
which carthage
:/usr/local/bin/carthage
carthage version
:0.37.0
xcodebuild -version
:Xcode 12.4
I've added SPM support to my library, PocketSVG, but for some reason that has broken the pre-existing Carthage support.
This is what happens when I run
carthage build --no-skip-current
in my library's root dir:The text was updated successfully, but these errors were encountered: