Troubleshooting

Xcode 15 Sandboxing

Starting from Xcode 15 Apple enabled User Script Sandboxing property in Build Settings which could lead to building issues in your xcodeproj

Sandbox: rsync(19184) deny(1) file-read-data 
.../XCFrameworkIntermediates/OMSDK_Appodeal/OMSDK_Appodeal.framework/_CodeSignature
Sandbox: rsync(19185) deny(1) file-write-create
.../Frameworks/OMSDK_Appodeal.framework/_CodeSignature
Sandbox: rsync(19184) deny(1) file-read-data
.../XCFrameworkIntermediates/OMSDK_Appodeal/OMSDK_Appodeal.framework/.DS_Store
Sandbox: rsync(19184) deny(1) file-read-data
.../XCFrameworkIntermediates/OMSDK_Appodeal/OMSDK_Appodeal.framework/Info.plist
Sandbox: rsync(19186) deny(1) file-write-create
.../Frameworks/OMSDK_Appodeal.framework/.OMSDK_Appodeal.TOrTRI

To fix that you need to set theUser Script Sandboxingas No in Build Settings.

Swift conflict

Starting from 1.1.7, iOS Stack Modules (BidMachine SDK Dependencies) has Swift enabled. Refer to points below in order to work through the most common problems of SDK installation & Swift interoperability:

  • XCode emits errors: 'Undefined symbol: __swift_FORCE_LOAD_$_swiftDataDetection' and 'Undefined symbol: __swift_FORCE_LOAD_$_swiftFileProvider . These errors mean that you are using not the latest version of XCode. Update to XCode 13 or newer to fix this errors.

SwiftProtobuf

Dependency conflicts may occur if you are using the original SwiftProtobuf pod. To prevent this from happening in the Podfile, you can add these lines

# Post install configuration
post_install do |installer|
  project = installer.pods_project
  project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES'
    end
  end
end

Asset validation failed

Asset validation failed
Invalid Swift Support. The file xxxx.app/Frameworks/libAppVerificationLibrary.a doesn't have the correct file type for this location. Ensure you're using the correct file, rebuild your app using the current public (GM) version of Xcode, and resubmit it

If you have such an error, then you can fix it:

Manual integration

If you are using StackIAB <= 2.0.5, then replace the library (OMSDKAppodeal) with the one at the link
If you are using
StackIAB >= 2.0.6 _then replace the library (OMSDK_Appodeal) with the one at the link

Cocoapods integration

If you are using StackIAB <= 2.0.5, then you must update StackIAB to version 2.0.6 or higher.
using the command.

If after pod update the StackIAB version has not increased to 2.0.6 and higher, then you need to upgrade to the latest BM version

pod repo update
pod update