Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question iOS Crash on start - What does your podfile look like?

Discussion in 'LevelPlay' started by masterton, Feb 26, 2023.

  1. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    I followed the setup (I think).... and I've been at this for close to a week.

    iOS crashes on startup because of a missing framework "DTBiOSSDK".
    Code (csharp):
    1. Error loading /var/containers/Bundle/Application/66F3C7F8-170C-4DC6-8798-120ACD9280ED/GoAtFantasy.app/Frameworks/UnityFramework.framework/UnityFramework (138):  dlopen(/var/containers/Bundle/Application/66F3C7F8-170C-4DC6-8798-120ACD9280ED/GoAtFantasy.app/Frameworks/UnityFramework.framework/UnityFramework, 0x0109): Library not loaded: @rpath/DTBiOSSDK.framework/DTBiOSSDK
    2.   Referenced from: <94E0F610-C284-30FC-825E-172C99756C02> /private/var/containers/Bundle/Application/66F3C7F8-170C-4DC6-8798-120ACD9280ED/GoAtFantasy.app/Frameworks/UnityFramework.framework/UnityFramework
    3.   Reason: tried: '/usr/lib/swift/DTBiOSSDK.framework/DTBiOSSDK' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/DTBiOSSDK.framework/DTBiOSSDK' (errno=2), '/usr/lib/swift/DTBiOSSDK.framework/DTBiOSSDK' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/DTBiOSSDK.framework/DTBiOSSDK' (errno=2), '/usr/lib/swift/DTBiOSSDK.framework/DTBiOSSDK' (errno=2, not in dyld cache), '/private/preboot/Cr<…>
    This is my podfile generated from the Unity build on my CI machine.

    Code (csharp):
    1. source 'https://cdn.cocoapods.org/'
    2. source 'https://github.com/CocoaPods/Specs'
    3.  
    4. platform :ios, '12.0'
    5.  
    6. target 'UnityFramework' do
    7.   pod 'Firebase/Core', '10.3.0'
    8.   pod 'Firebase/DynamicLinks', '10.3.0'
    9.   pod 'IronSourceAdColonyAdapter', '4.3.15.4'
    10.   pod 'IronSourceAdMobAdapter', '4.3.40.0'
    11.   pod 'IronSourceAppLovinAdapter', '4.3.37.1'
    12.   pod 'IronSourceAPSAdapter', '4.3.6.0'
    13.   pod 'IronSourceChartboostAdapter', '4.3.12.4'
    14.   pod 'IronSourceCSJAdapter', '4.3.1.0'
    15.   pod 'IronSourceFacebookAdapter', '4.3.38.4'
    16.   pod 'IronSourceFyberAdapter', '4.3.27.0'
    17.   pod 'IronSourceHyprMXAdapter', '4.3.1.4'
    18.   pod 'IronSourceInMobiAdapter', '4.3.16.0'
    19.   pod 'IronSourceLiftoffAdapter', '4.3.3.4'
    20.   pod 'IronSourceMaioAdapter', '4.1.10.18'
    21.   pod 'IronSourceMintegralAdapter', '4.3.12.0'
    22.   pod 'IronSourceMyTargetAdapter', '4.1.15.2'
    23.   pod 'IronSourcePangleAdapter', '4.3.18.0'
    24.   pod 'IronSourceSDK', '7.2.7.0'
    25.   pod 'IronSourceSmaatoAdapter', '4.3.9.0'
    26.   pod 'IronSourceSuperAwesomeAdapter', '4.1.5.2'
    27.   pod 'IronSourceTapjoyAdapter', '4.1.23.1'
    28.   pod 'IronSourceTencentAdapter', '4.3.3.9'
    29.   pod 'IronSourceUnityAdsAdapter', '4.3.25.2'
    30.   pod 'IronSourceVungleAdapter', '4.3.24.0'
    31.   pod 'IronSourceYahooAdapter', '4.3.4.1'
    32. end
    33. target 'Unity-iPhone' do
    34. end
    35. use_frameworks! :linkage => :static
    You'll notice there is no DTBiOSSDK included - should I be added this manually? I tried that and got the same result.
     
    Sergey-Pekar likes this.
  2. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    Does anyone know what the DTBiOSSDK framework is? And who is pulling it in?
     
  3. BOLDCAT

    BOLDCAT

    Joined:
    May 28, 2015
    Posts:
    10
    Hi, I had same problem with another Mediation. I deleted Facebook SDK and fb adapter. Problem is solved.
     
    masterton likes this.
  4. rbitard

    rbitard

    Joined:
    Jan 11, 2022
    Posts:
    197
    Did you solve this problem ? I have the same error only with Library not loaded: @rpath/libswiftCore.dylib
     
  5. masterton

    masterton

    Joined:
    Dec 11, 2012
    Posts:
    41
    I never did solve the problem - I ended up removing Ads altogether so I could release the build. :(
     
  6. Rabadash8820

    Rabadash8820

    Joined:
    Aug 20, 2015
    Posts:
    94
    Just ran into a similar issue. I was using Appodeal for ad mediation, and it includes Amazon Ads among its various ad networks. According to their docs, DTBiOSSDK is an "Amazon SDK component". No idea what "DTB" stands for...maybe "Direct To Buy"?

    Anyway, the issue in my case was that Appodeal (or rather, its distribution of External Dependency Manager) was attempting to link frameworks statically, but for some reason DTBiOSSDK.framework wasn't being included in the statically linked list of frameworks. Appodeal's recommendation was to either disable linking frameworks statically, or manually include DTBiOSSDK.framework in the Xcode project generated by Unity; I went with the former solution because I didn't have any other frameworks relying on static links and I didn't wanna mess with manual changes after every build (or writing another custom build script). I'm sure the solution for other frameworks that include the Amazon SDK is similar.

    Hope that helps someone!
     
    Sergey-Pekar and hero87 like this.
  7. hero87

    hero87

    Joined:
    Dec 12, 2016
    Posts:
    3
    Thanks it's work
     
  8. Sergey-Pekar

    Sergey-Pekar

    Joined:
    May 19, 2016
    Posts:
    1
    Helped a lot. Thank you