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 SDK compile error - MacOS 10.15.7, XCode 12.4, HEAD 63f0166f7

See original GitHub issue

Description:

Command line build of Jitsi Meet SDK as described under “Building it yourself”, see https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ios-sdk

Steps to reproduce:

  1. clone repo
  2. cd jitsi-meet, npm install
  3. (cd ios, pod install)
  4. xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeet -destination=‘generic/platform=iOS’ -configuration Release archive

Expected behavior:

Build SDKs

Actual behavior:

I get the following error messages and am unable to resolve them. As I did compile the SDK several times over the last half year, I know that it works in general.

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeet -destination=generic/platform=iOS -configuration Release archive

User defaults from command line:
    destination = generic/platform=iOS

note: Using new build system
note: Planning build
note: Constructing build description
error: No profiles for 'org.jitsi.meet' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'org.jitsi.meet'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'JitsiMeet' from project 'app')
error: No profiles for 'org.jitsi.meet.watchkit.extension' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'org.jitsi.meet.watchkit.extension'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'JitsiMeetCompanion Extension' from project 'app')
error: No profiles for 'org.jitsi.meet.watchkit' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'org.jitsi.meet.watchkit'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild. (in target 'JitsiMeetCompanion' from project 'app')

** ARCHIVE FAILED **

Question:

Instead of building the app target, wouldn’t it be possible to only build the SDK targets per se? I tried to build the targets react-native-webrtc and JitsiMeetSDKdirectly, but that doesn’t work:

Things I tried additionally:

  1. xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme react-native-webrtc -destination=‘generic/platform=iOS’ -configuration Release archive
  2. xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeetSDK -destination=‘generic/platform=iOS’ -configuration Release archive

The first one builds correctly, but the second leads to the following error:

PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/holgerpandel/Library/Developer/Xcode/DerivedData/jitsi-meet-dvobgabsnnvazxbtdjefsbflrvdk/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/IntermediateBuildFilesPath/sdk.build/Release-iphoneos/JitsiMeetSDK.build/Script-26796D8589142D80C8AFDA51.sh (in target 'JitsiMeetSDK' from project 'sdk')
    cd /Users/holgerpandel/Source/jitsi-meet/ios/sdk
    /bin/sh -c /Users/holgerpandel/Library/Developer/Xcode/DerivedData/jitsi-meet-dvobgabsnnvazxbtdjefsbflrvdk/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/IntermediateBuildFilesPath/sdk.build/Release-iphoneos/JitsiMeetSDK.build/Script-26796D8589142D80C8AFDA51.sh
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

** ARCHIVE FAILED **

I tried to clean up all project data and the DerivedData folder, running only the second command but that leads to another error - clearly because WebRTC framework is missing now:

ld: '/Users/holgerpandel/Library/Developer/Xcode/DerivedData/jitsi-meet-dvobgabsnnvazxbtdjefsbflrvdk/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/WebRTC/WebRTC.framework/WebRTC' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/holgerpandel/Library/Developer/Xcode/DerivedData/jitsi-meet-dvobgabsnnvazxbtdjefsbflrvdk/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/BuildProductsPath/Release-iphoneos/XCFrameworkIntermediates/WebRTC/WebRTC.framework/WebRTC' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
        Ld /Users/holgerpandel/Library/Developer/Xcode/DerivedData/jitsi-meet-dvobgabsnnvazxbtdjefsbflrvdk/Build/Intermediates.noindex/ArchiveIntermediates/JitsiMeetSDK/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/JitsiMeetSDK.framework/JitsiMeetSDK normal

My Cocoapods installation (1.10.1) is current and I did a fresh pod install.

So?

What can I do now?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pandelcommented, Feb 3, 2021

@saghul Many thanks! That makes it really clear. I was able to remove old JitsiMeet from my Podfile and integrate both self-compiled XCFrameworks (JitsiMeetSDK+WebRTC) into my project successfully.

Very nice! Keep up your great work 😃

0reactions
saghulcommented, Feb 2, 2021

I updated the docs now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can we run Xcode 12 in macOS Catalina? - Apple Developer
I have macOS Catalina, and now I am trying to update from Xcode 12.4 to 12.5, but I'm getting an error saying I...
Read more >
How to fix the error "The developer of this app needs to update ...
The signature generated by a build with XCode 12.4 or lower on a Mac running with Mac OS 10.14 or lower are invalid...
Read more >
How to Download Xcode and Install it on Your Mac
Xcode is the tool developers use to build apps for the Apple ecosystem – MacOS, iOS, and all things Apple. This guide will...
Read more >
getting Xcode for Mac version 10.15.7 - Stack Overflow
I have Xcode installed but I cannot open it. I keep getting an error that maybe my OS version cannot run the installed...
Read more >
The macOS Build Environment - Travis CI Docs
Travis CI uses macOS 10.13 and Xcode 9.4.1 by default. You can use another version of macOS (and Xcode) by specifying the corresponding...
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