truenary / native_mixpanel

Other
12 stars 22 forks source link

Build fail when do flutter run. #18

Open lsethi-xoriant opened 4 years ago

lsethi-xoriant commented 4 years ago

Running pod install... 5.1s Running Xcode build...

Xcode build done. 8.2s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED

Xcode's output: ↳ === BUILD TARGET native_mixpanel OF PROJECT Pods WITH CONFIGURATION Debug === /Users/testUser/develeopment/flutter/.pub-cache/hosted/pub.dartlang.org/native_mixpanel-0.1.2/ios/Classes/NativeMixpanelPlugin.m:2:9: fatal error: 'native_mixpanel/native_mixpanel-Swift.h' file not found

import <native_mixpanel/native_mixpanel-Swift.h>

        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max.

Please let me know how do fix this issue?

SergeShkurko commented 4 years ago

@lsethi-xoriant try add use_frameworks! in ios/Podfile

lsethi-xoriant commented 4 years ago

@SergeShkurko Thanks I use it but also in podspec file here need to add swift version.

native_mixpanel/ios/native_mixpanel.podspec

s.swift_version = "4.0"