mixpanel / mixpanel-flutter

Official Flutter Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
68 stars 75 forks source link

could not find module 'Mixpanel' for target 'arm64-apple-ios-simulator' #63

Open PaRaDoX50 opened 2 years ago

PaRaDoX50 commented 2 years ago

I have set EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 in the pod file for other important libraries to work (Razorpay). Any workaround to fix this issue? I am using Macbook M1 Air.

PaRaDoX50 commented 2 years ago

bump

jaredmixpanel commented 2 years ago

@PaRaDoX50 are you still experiencing this issue? If so, can you please update to the latest version (v1.5.0) and let us know if it still persists?

carolgsomnio commented 1 year ago

Any update on this?

gonzasosa commented 1 year ago

Same issue happens to me as well

abhinand-kv commented 1 year ago

Any update on this?

PaRaDoX50 commented 1 year ago

@PaRaDoX50 are you still experiencing this issue? If so, can you please update to the latest version (v1.5.0) and let us know if it still persists?

I have dropped that project, so I won't be able to assist you with more information.

lirantzairi commented 1 year ago

@jaredmixpanel I'm also getting this error. I'm using the latest Flutter version (3.7.9), Xcode 14.3 and mixpanel_flutter 2.1.1. This only happens when building in debug mode for ios simulator. Can you please help?

/Users/liran/.pub-cache/hosted/pub.dev/mixpanel_flutter-2.1.1/ios/Classes/MixpanelTypeHandler.swift:2:9 Could not find module 'Mixpanel' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, at: /Users/liran/Library/Developer/Xcode/DerivedData/Runner-byzfiipvwfspocdgverqnceqomku/Index.noindex/Build/Products/Debug-iphonesimulator/Mixpanel-swift/Mixpanel.framework/Modules/Mixpanel.swiftmodule
Heewookji commented 1 year ago

I solved it by applying the architectures to be excluded when pod install is running as shown below.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |build_configuration|
          build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
    end
  end
...
milos-hectre commented 2 months ago

Bump. This is still an unresolved issue.