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

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

Open PaRaDoX50 opened this issue 3 years ago • 9 comments

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 avatar Feb 14 '22 19:02 PaRaDoX50

bump

PaRaDoX50 avatar Feb 16 '22 14:02 PaRaDoX50

@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?

jaredmixpanel avatar May 09 '22 23:05 jaredmixpanel

Any update on this?

carolgsomnio avatar Dec 13 '22 15:12 carolgsomnio

Same issue happens to me as well

gonzasosa avatar Jan 23 '23 05:01 gonzasosa

Any update on this?

abhinand-kv avatar Feb 22 '23 12:02 abhinand-kv

@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.

PaRaDoX50 avatar Feb 22 '23 20:02 PaRaDoX50

@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

liranzairi avatar Mar 31 '23 19:03 liranzairi

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
...

Heewookji avatar Apr 19 '23 06:04 Heewookji