mixpanel-iphone icon indicating copy to clipboard operation
mixpanel-iphone copied to clipboard

Import via SPM doesn't display the latest version: blocks the use of SPM integration

Open AnissaBokhamy opened this issue 1 year ago • 1 comments

Integration Method: Swift Package Manager Xcode Version: Xcode 14.2 Library Version: 5.0.2 Platform: iOS Language: Swift and Objective-C Description: While trying to import Mixpanel-iphone via Swift Package Manager, when selecting option "Exact Version", the prompt automatically selects version 3.0.0. image

It seems that that this is linked to the fact that the field CFBundleVersion included inside the Info.plist file is set to CURRENT_PROJECT_VERSION, which seems to be set to 3.0.0 in the project.pbxproj file.

☑ Please update the CURRENT_PROJECT_VERSION of the project.pbxproj file.


I am reporting this issue because I imported Mixpanel-iPhone SDK via SPM and I had the following prompt

missing required module 'Mixpanel'

This prompt appeared even though I was following the instructions from the documentation: my project couldn't recognize the framework. I tried forking the project, changing the field CURRENT_PROJECT_VERSION = 5.0.2, re-importing it Mixpanel-iPhone in my project via SPM: it worked 🥳

(For now, I switched to using CocoaPods because the SPM import method doesn't seem to work fine on my end)

AnissaBokhamy avatar Mar 17 '23 18:03 AnissaBokhamy