question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS: Support for the new build system in Xcode 10 (fix build in Xcode 11)

See original GitHub issue

Xcode 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
saghulcommented, Sep 25, 2019

Leaving more comments won’t help solve the issue faster, you are just stressing out developers.

2reactions
aaronraimistcommented, Sep 13, 2019

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:

⟩ 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 Mac Catalyst is not supported by the legacy build system.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found