BrightLine-iTV / blsdk-ios-spm

BrightLine SDK for iOS
0 stars 0 forks source link

Package Resolution failed #2

Open ikhvorost opened 5 months ago

ikhvorost commented 5 months ago

Hi!

I use your libraries for both iOS and tvOS platforms for many years in my universal app. My app's project contains two targets for iOS and tvOS respectively so that it's convenient to use swift packages.

But it's impossible to add two swift packages (https://github.com/BrightLine-iTV/blsdk-tvos-spm.git and https://github.com/BrightLine-iTV/blsdk-ios-spm.git) to a single Xcode workspace because of error:

Package Resolution failed
blsdk-tvos-spm.git could not be resolved

To fix this I've made my own iOS/tvOS xcframework manually from your libraries and linked to my project succesfully, e.g.:

xcodebuild -create-xcframework \
    -framework blsdk-ios-spm-main/BLAdFramework.xcframework/ios-arm64/BLAdFramework.framework \
    -framework blsdk-ios-spm-main/BLAdFramework.xcframework/ios-arm64_x86_64-simulator/BLAdFramework.framework \
    -framework blsdk-tvos-spm-main/BLAdFramework.xcframework/tvos-arm64/BLAdFramework.framework \
    -framework blsdk-tvos-spm-main/BLAdFramework.xcframework/tvos-arm64_x86_64-simulator/BLAdFramework.framework \
    -output build/BLAdFramework.xcframework

Is it possible to make the swift package with universal iOS/tvOS xcframework instead of two?

Eliasdevlb commented 1 month ago

Hello, which version were you targeting? We have several partners utilizing this with no issues.

ikhvorost commented 1 month ago

Hi! There is no problem if I use each of them independently. The problem appears if I use both of them iOS and tvOS simultaneously within my project.

<key>CFBundleShortVersionString</key>
<string>1.1</string>