smartlook / smartlook-mobile-issue-tracker

Official Smartlook issue tracker for mobile SDKs
4 stars 0 forks source link

Invalid bitcode version (Producer: '1205.0.22.9.0_0' Reader: '1200.0.32.29_0') #83

Closed Kondamon closed 3 years ago

Kondamon commented 3 years ago

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]

  1. Install Xcode 12.4
  2. Add smartlook framework
  3. Archive product

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.

pavel-kroh-smartlook commented 3 years ago

Hi @Kondamon , how do you embed Smartlook? Directly, via Cocoapods or Swift package?

Kondamon commented 3 years ago

Hi @pavel-kroh-smartlook, thanks for your quick reply. Via Swift package manager.

pavel-kroh-smartlook commented 3 years ago

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.

Kondamon commented 3 years ago

Thank you, @pavel-kroh-smartlook!

paxful-ios commented 3 years ago

Hey @pavel-kroh-smartlook We also faced this error, any updates or workaround here?

pavel-kroh-smartlook commented 3 years ago

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

paxful-ios commented 3 years ago

Thank you for your reply @pavel-kroh-smartlook Is there any possibility to embed Smartlook via SPM?

pavel-kroh-smartlook commented 3 years ago

@paxful-ios , indeed, but I see there is still the bitcode incompatible version. I'll update it soon and let you know…

https://github.com/smartlook/SmartlookSwiftPackage

pavel-kroh-smartlook commented 3 years ago

Hi @paxful-ios , the Swift Package has been updated to the bitcode back-compatible version 1.7.7, too.

SudhirGadhvi commented 3 years ago

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.

pavel-kroh-smartlook commented 3 years ago

Hi @SudhirGadhvi , thanks for detailed report! It looks like a bug in the package, sorry for the inconvenience. I'll look into it immediately.

pavel-kroh-smartlook commented 3 years ago

Hi @SudhirGadhvi , please update the SwiftPackage to the latest version (1.7.8). The issue is solved there.

SudhirGadhvi commented 3 years ago

@pavel-kroh-smartlook: Thanks for the quick response. It's working now, Thank you :)

pavel-kroh-smartlook commented 3 years ago

@SudhirGadhvi thanks for confirming! Cheers.

papmodern commented 3 years ago

I have the same problem with flutter, which uses Cocoapods. How can I fix it?

Kondamon commented 3 years ago

@papmodern Update to Xcode 12.5 or 13.0

pavel-kroh-smartlook commented 3 years ago

@papmodern The framework is now compiled with Xcode 12.4 to keep the backward compatibility. Which version of Xcode and Smartlook do you have?

papmodern commented 3 years ago

@pavel-kroh-smartlook flutter_smartlook: ^3.0.2 xcode: 12.5.1

pavel-kroh-smartlook commented 3 years ago

@krystofcelba - we did some significant changes to our flutter plugin, is this the current version?

pavel-kroh-smartlook commented 3 years ago

@papmodern : please upgrade the plugin, see https://docs.smartlook.com/docs/sdk/flutter?platform=flutter

papmodern commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

@papmodern : there a backaward compatibility issue in our Flutter plugin which now requires Xcode 13.

There are two possible solutions:

pavel-kroh-smartlook commented 3 years ago

Hi all, new version of Smartlook Flutter plugin has been released, with backward-compatible native code: https://pub.dev/packages/flutter_smartlook