quickblox-ios-sdk icon indicating copy to clipboard operation
quickblox-ios-sdk copied to clipboard

Exporting archive with `gym` fails with the latest version of Quickblox

Open corujautx opened this issue 2 years ago • 6 comments

New Issue Checklist

  • [X] I have read the Documentation
  • [X] I have searched for a similar issue in the project and found none

Environment details

Info Value
iOS Version 14.0
Quickblox iOS SDK version 2.17.11
QuickbloxWebRTC SDK version N/A
Xcode Version Xcode 13.2.1
Repro with our demo sample e.g. does it happen with our demo sample?

Did this work before? Yes

Expected behavior Export to succeed

Actual behavior Export does not succeed

Logs

Please use the following template for logs:

To enable full logs use the following code:

[QBSettings setLogLevel:QBLogLevelDebug];
[QBSettings enableXMPPLogging];

This is not a runtime log, rather it's a gym output from Fastlane. I think it's related to missing bitcode in the fat frameworks embedded in the .xcframework. We do not want to disable bitcode in our app because we want to be able to distribute an slim app.

Gym logs

Please check the attached files gym.log

Steps to reproduce the behavior

  1. Create a project and link with Quickblox
  2. Export an archive using gym

Alternatively, try to distribute an archive with Xcode whilst rebuilding with bitcode

image image

Any others comments N/A

corujautx avatar Apr 07 '22 01:04 corujautx

@corujautx Hello, this is Nikolay from QuickBlox support. We created a new project and installed our new SDK into it using CocoaPods and manually. Several times we built the project for release under various conditions. The error did not reproduce.

Please try updating XCode to the latest version.

ghost avatar Apr 12 '22 11:04 ghost

Do you guys changed anything recently on the CocoaPods post install? We're not integrating it via CocoaPods.

corujautx avatar Apr 14 '22 03:04 corujautx

Updating to the latest Xcode version is not possible as well due to the known issue with bitcode and Swift's new concurrency model.

corujautx avatar Apr 14 '22 04:04 corujautx

@QB-nikolay-zolotarov I may be having similar issues. At this time I'm not sure if it is Quickblox or not. I am using the latest version of Xcode version 13.3.1 and installing via CocoaPods QuickBlox (2.17.11).

As you can see from my screenshot below, it does look quite similar to the screenshot @corujautx posted. I am building a Framework that utilizes Quickblox and when integrating my XCFramework into a sample app—when I then try to export the sample with the Rebuild from Bitcode checkbox selected, it fails.

If I run xcrun bitcode-build-tool in the terminal against the latest iOS SDK and my framework, I consistently get the following error.

Quickblox not found in dylib search path

I'm not doing anything out of the ordinary as far as I can tell, the Podfile simply lists pod 'QuickBlox' along with many other pod dependencies.

If I use otool -L I see Quickblox in the list as well,

@rpath/Quickblox.framework/Quickblox (compatibility version 1.0.0, current version 1.0.0)

Would you have any thoughts on this?

Screen Shot 2022-04-18 at 4 05 51 PM

JohnCaccavale-Teladoc avatar Apr 18 '22 20:04 JohnCaccavale-Teladoc

Also, I just tested everything by commenting out Quickblox from my podfile and building my Framework without it. By not including Quickblox I was then able "Rebuild from Bitcode" and export everything accordingly without any errors.

JohnCaccavale-Teladoc avatar Apr 18 '22 22:04 JohnCaccavale-Teladoc

Thank you, we are reviewing the information

ghost avatar Apr 20 '22 08:04 ghost