iOS Development

ios – Flutter redefinition & fail to compile modules

Spread the love


Launching lib/predominant.dart on iPhone in debug mode…
Xcode construct achieved. 4.8s
Didn’t construct iOS app
Error (Xcode): redefinition of module ‘AppleTextureEncoder’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:0:7

Error (Xcode): redefinition of module ‘Compression’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:5:7

Error (Xcode): redefinition of module ‘Darwin’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:10:7

Error (Xcode): redefinition of module ‘asl’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:792:7

Error (Xcode): redefinition of module ‘dnssd’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/dnssd.modulemap:0:7

Error (Xcode): redefinition of module ‘libunwind’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/libunwind.modulemap:0:7

Error (Xcode): redefinition of module ‘unwind’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/libunwind.modulemap:5:7

Error (Xcode): redefinition of module ‘os’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:798:7

Error (Xcode): redefinition of module ‘os_object’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:841:7

Error (Xcode): redefinition of module ‘os_workgroup’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:845:7

Error (Xcode): redefinition of module ‘libkern’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:855:7

Error (Xcode): redefinition of module ‘kcdata’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/kcdata.modulemap:0:7

Error (Xcode): redefinition of module ‘notify’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:870:7

Error (Xcode): redefinition of module ‘zlib’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:875:7

Error (Xcode): redefinition of module ‘SQLite3’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/module.modulemap:881:7

Error (Xcode): redefinition of module ‘CommonCrypto’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/CommonCrypto/module.modulemap:0:7

Error (Xcode): redefinition of module ‘libxml2’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/libxml2/libxml/module.modulemap:0:7

Error (Xcode): redefinition of module ‘ICU’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/unicode/module.modulemap:0:7

Error (Xcode): redefinition of module ‘Dispatch’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/usr/embrace/dispatch/module.modulemap:0:7

Error (Xcode): too many errors emitted, stopping now

Error (Xcode): couldn’t construct module ‘CoreGraphics’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:16:9

Error (Xcode): couldn’t construct module ‘CoreGraphics’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVImageBuffer.h:25:9

Error (Xcode): couldn’t construct module ‘CoreGraphics’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h:13:9

Error (Xcode): couldn’t construct module ‘CoreGraphics’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h:21:9

Error (Xcode): couldn’t construct module ‘CoreGraphics’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:18:9

Error (Xcode): couldn’t construct module ‘UIKit’
/Customers/username/Desktop/listing/demo/construct/ios/Debug-iphonesimulator/Flutter.framework/Headers/FlutterAppDelegate.h:7:8

Error (Xcode): couldn’t construct module ‘CoreAudio’
/Purposes/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMFormatDescription.h:25:9

Error (Xcode): couldn’t construct module ‘Flutter’
/Customers/username/Desktop/listing/demo/ios/Runner/GeneratedPluginRegistrant.h:9:8

Error (Xcode): did not emit precompiled header ‘/Customers/username/Library/Developer/Xcode/DerivedData/Runner-cubwxuuxnlzwfqflguxojeurzhux/Construct/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_1W69QWNC8JOCM-clang_1YE1HF0U0WLTP.pch’ for bridging header ‘/Customers/username/Desktop/Think about Cup/demo/ios/Runner/Runner-Bridging-Header.h’

Couldn’t construct the appliance for the simulator.
Error launching software on iPhone.

Exited (1).

I’ve tried deleting the derived information file however it nonetheless doesn’t work. I learn completely different options however I’m nonetheless confused what I can do to resolve this error. I’m not skilled with the iOS software program improvement structure. Can somebody clarify this error, what is definitely the foundation of the error and the way I can resolve this? The flutter app works on android, net, macOS, something outdoors of iOS.

3 thoughts on “ios – Flutter redefinition & fail to compile modules

  1. Ive read several just right stuff here Certainly price bookmarking for revisiting I wonder how a lot effort you place to create this kind of great informative website

  2. Hi Neat post There is a problem along with your website in internet explorer would test this IE still is the market chief and a good section of other folks will pass over your magnificent writing due to this problem

Leave a Reply

Your email address will not be published. Required fields are marked *