Closed piemonte closed 6 years ago
Same issue. @piemonte did you find the solution?
hi @bohachevskyy and @piemonte , what's your Podfile look like? It should work if looks like below for example:
target
'testProject' do
use_frameworks!
pod 'Mixpanel-swift'
end
Also bridging headers aren't allowed in frameworks, only in applications. So it should have no bridging header defined for Mixpanel.
Mixpanel.h, the umbrella header is the 'master' header file for Mixpanel framework, not a bridging header.
hey @zihejia thanks for the fast reply.
so my Podfile matches your description. the prior version 2.4.4
builds correctly but when updating to 2.4.5
, the new ExtensionWrapper
objc file is not found.
the project does reference a 'Mixpanel-Swift.h' which does not exist, thus why I thought it could be updated to 'Mixpanel.h'. can look into it when i have a free moment.
@bohachevskyy i'm just sticking the previous version for now 👍
@zihejia i've had to embed objc in a swift framework once in the past, following this pattern:
📎 https://github.com/danieleggert/mixed-swift-objc-framework
Not sure if that's how mixpanel is setup but wanted to share. thanks again for the help.
hi @piemonte thanks for sharing the sample. In Mixpanel framework, swift only needs to access public objc class, so it's supported out of box, much easier than the sample. Could you share with me which XCode version you are using? Your main project is also swift, right?
thank you for reply @piemonte I did exactly the same :)
@zihejia My podfile also match your description. Now I'm using older sdk:
pod 'Mixpanel-swift', '2.4.3'
hi @bohachevskyy , which Xcode version are you using? Do you mind to create a sample project to demonstrate the error?
@zakj Xcode version: 9.4.1. I'll provide test project when get chance :)
Since you were upgrading from the old version, If you do a clean build(Command-Option-Shift-K to clean out the build folder, quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually. , reset simulator, restart Xcode), the problem should go away. Closing this one out, please re-open if you're still experiencing the problem and the solutions suggested don't resolve it.
hey mixpanel,
with the latest update, i believe the
ExceptionWrapper
isn't being picked up in scope. this is causing the build to be fail when installed via cocoapods for iOS.it looks like it may be the project's "Bridging Header" configuration, as it's defined as
Mixpanel-Swift.h
but the bridge header with the include is calledMixpanel.h
.