BelledonneCommunications / linphone-iphone

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of linphone-iphone (git://git.linphone.org/linphone-iphone.git)
http://linphone.org
GNU General Public License v3.0
588 stars 355 forks source link

Library not loaded: @rpath/liblibbelle-sip-tester.dylib #965

Open Cersin opened 4 days ago

Cersin commented 4 days ago

Fresh clone, pod install and run in xcode Stuck in splashscreen. Xcode version: Version 16.1 (16B40)

Any tips?

warning: (arm64) /Users/szymon/Library/Developer/Xcode/DerivedData/Linphone-fuzubwyqpnertxeyzojxqbdkqluv/Build/Products/Debug-iphonesimulator/Linphone.app/Linphone empty dSYM file detected, dSYM was created with an executable with no debug info. dyld[58088]: Library not loaded: @rpath/liblibbelle-sip-tester.dylib Referenced from: <C1ADCD79-8ADB-3C97-AD0F-305481C978C5> /Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/Frameworks/linphonetester.framework/linphonetester Reason: tried: '/Users/szymon/Library/Developer/Xcode/DerivedData/Linphone-fuzubwyqpnertxeyzojxqbdkqluv/Build/Products/Debug-iphonesimulator/liblibbelle-sip-tester.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22A3351/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Frameworks/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/Frameworks/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/Frameworks/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/liblibbelle-sip-tester.dylib' (no such file), '/Users/szymon/Library/Developer/CoreSimulator/Devices/598D0341-763C-4C16-B237-47225EDA224C/data/Containers/Bundle/Application/3FB7ADCC-D9D9-471A-8A5B-4596CFEC4EAF/Linphone.app/Frameworks/liblibbelle-sip-tester.dylib' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_22A3351/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 18.0.simruntime/Contents/Resources/RuntimeRoot/usr/lib/liblibbelle-sip-tester.dylib' (no such file)

Zrzut ekranu 2024-11-27 o 12 54 54

mrhery commented 3 days ago

I faced the same issue too since upgrade to xcode 16 and running on device ios18.

I have done few work out from ChatGPT and StackOverflow, seems nothing fixed the issues.

Here's are few thing I done but still fail (just to make sure no one shares the same non-workout solution):

  1. Change the Always Embed Swift Standard Libraries to YES.
  2. Add the linphonetester.xcfromework in the list of embedded binaries.
  3. Upgrade all dependencies to ios13 or ios15
  4. Re-install & restart xcode
  5. Add runpath @executable_path/Frameworks
  6. Add other linker flag -rpath @executable_path/Frameworks

These step I followed, but nothings worked out. Its been almost 2 weeks from the update to xcode 16.

Here's the podfile:

platform :ios, '15.6'
source "https://gitlab.linphone.org/BC/public/podspec.git"
source "https://github.com/CocoaPods/Specs.git"

def basic_pods
    pod 'linphone-sdk', '> 5.4.0-alpha'
end

target 'MyApp' do
  use_frameworks!

  pod 'SQLite.swift', '~> 0.14.0'

  basic_pods

  pod 'ModalPresenter'
  pod "Firebase"
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
end