Closed Kondamon closed 3 years ago
Hi @Kondamon , how do you embed Smartlook? Directly, via Cocoapods or Swift package?
Hi @pavel-kroh-smartlook, thanks for your quick reply. Via Swift package manager.
I see.
Thanks @Kondamon for reporting, we will look into it and make sure the released frameworks are (better) compatible across Xcode versions.
It seems that Xcode 12.5 introduced some breaking changes into the bitcode. We already got one similar report via a private channel, but they use a rare combination of a really old Xcode and Cocoapods, and it worked with Swift Packages in their case. We run some tests with various combinations of Xcode versions and it seemed that the issue is quite isolated to their environment… but apparently there are more circumstances when this happen.
Thank you, @pavel-kroh-smartlook!
Hey @pavel-kroh-smartlook We also faced this error, any updates or workaround here?
Jo @paxful-ios , we communicated about it with Apple a bit and found a workaround. We prepared a new SDK build compiled in an older version of Xcode, and we will have to do it for some time till new compiler version is widely adopted.
The backward bitwise-compatible version is released in Cocoapods as version 1.7.6.1 (the same as 1.7.6, just recompiled). If you embed Smartlook directly, the download link is here: https://sdk.smartlook.com/ios/smartlook-ios-sdk-1.7.6.1.3345.zip
Thank you for your reply @pavel-kroh-smartlook Is there any possibility to embed Smartlook via SPM?
@paxful-ios , indeed, but I see there is still the bitcode incompatible version. I'll update it soon and let you know…
Hi @paxful-ios , the Swift Package has been updated to the bitcode back-compatible version 1.7.7, too.
Still facing the issue Xcode: 12.5.1 Smartlook SDK version: 1.7.7
Swift Package Manager
Error: (Smartlook-arm64-master.o)' 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.
Xcode setting -> ENABLE_BITCODE is set to true already.
Hi @SudhirGadhvi , thanks for detailed report! It looks like a bug in the package, sorry for the inconvenience. I'll look into it immediately.
Hi @SudhirGadhvi , please update the SwiftPackage to the latest version (1.7.8). The issue is solved there.
@pavel-kroh-smartlook: Thanks for the quick response. It's working now, Thank you :)
@SudhirGadhvi thanks for confirming! Cheers.
I have the same problem with flutter, which uses Cocoapods. How can I fix it?
@papmodern Update to Xcode 12.5 or 13.0
@papmodern The framework is now compiled with Xcode 12.4 to keep the backward compatibility. Which version of Xcode and Smartlook do you have?
@pavel-kroh-smartlook flutter_smartlook: ^3.0.2 xcode: 12.5.1
@krystofcelba - we did some significant changes to our flutter plugin, is this the current version?
@papmodern : please upgrade the plugin, see https://docs.smartlook.com/docs/sdk/flutter?platform=flutter
@pavel-kroh-smartlook I'm using the latest stable version which published in pub.dev You mean I use github directly? Or is there any beta release?
@pavel-kroh-smartlook I'm using the latest stable version which published in pub.dev You mean I use github directly? Or is there any beta release?
@papmodern : there a backaward compatibility issue in our Flutter plugin which now requires Xcode 13.
There are two possible solutions:
Hi all, new version of Smartlook Flutter plugin has been released, with backward-compatible native code: https://pub.dev/packages/flutter_smartlook
Platform
iOS
Technology
native
Smartlook SDK version
1.7.6
Summary
Smartlook 1.7.6 was build with Xcode 12.5. With Xcode 12.4 the latest version 1.7.6 can not be used anymore because you reveive an archive error: ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '1205.0.22.9.0_0' Reader: '1200.0.32.29_0')',
Steps to reproduce [optional]
Question Is it inevitable that smartlook 1.7.6 has to be build with Xcode 12.5? At the moment there are still some bugs in XCode 12.5 or Big Sur that prevents me from switching to it. Therefore I have to downgrade to Smartlook 1.7.5.