iOS: Support for the new build system in Xcode 10 (fix build in Xcode 11)
See original GitHub issueXcode 11 (beta 1) seems to have removed the option to build for iOS using the legacy build system so please revert #3660 and fix the issues caused by the new build system.
Building for iOS (on macOS) is not supported by the legacy build system.
⟩ xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeet -destination='generic/platform=iOS' -configuration Release archive
User defaults from command line:
destination = generic/platform=iOS
Prepare build
note: Using legacy build system
=== BUILD TARGET JitsiMeet OF PROJECT sdk WITH CONFIGURATION Release ===
Resolving target dependencies
Target 'Pods-JitsiMeet' of project 'Pods' was rejected as an implicit dependency for 'libPods-JitsiMeet.a' because it doesn't contain platform 'macosx' in its supported platforms 'iphonesimulator, iphoneos'
Check dependencies
target 'JitsiMeet' has bitcode enabled (ENABLE_BITCODE = YES), but it is not supported for the 'macosx' platform
Building for iOS (on macOS) is not supported by the legacy build system.
** ARCHIVE FAILED **
xcodebuild -version
Xcode 11.0
Build version 11M336w
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
XCode 10 new build system - unreli… | Apple Developer Forums
1. The build system often fails to detect changes, if these changes are not obvious previous to starting a build. Aparently most of...
Read more >How can I use the legacy build system with Xcode 10's ...
It turns out switching back to the legacy build system fixes this. This can be done in the workspace settings (File > Workspace...
Read more >How to fix the error "The developer of this app needs to update ...
Step 1 : Your current XCode (12.4 or lower) needs the supporting device images to support iOS 15. Step 2 : Build App...
Read more >A comprehensive guide to optimizing your Xcode build - Flexiple
Xcode 9 introduced a new build system (I think it is called XCBuild internally), which was only in its preview version. But in...
Read more >Build System in Xcode 10 — Issues Faced and their Solutions
Info.plists, Cocoapods, Run Scripts and more ... With the launch of Xcode 10, we're introduced to a new build system for compiling and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Leaving more comments won’t help solve the issue faster, you are just stressing out developers.
This seems to have changed in the Xcode 11 GM. Running the command in the docs fails with a slightly different error than in beta 1:
adding
-sdk iphoneos
to the command allows the build to continue in the GM. The build does actually fail but I’m not sure exactly what the issue is there and it doesn’t seem to be related to the build system so I’ll leave that for another issue.