7

I'm trying to build a flutter project from Xcode Version 12.4 for a iPhone 12 Simulator with iOS 14.4. Everything works fine from command line by running flutter run.

In Xcode I met the following error code.

ld: warning: ignoring file /Users/epsilon/Library/Developer/Xcode/DerivedData/Runner-fukggautraualohaflrpmsjaeyto/Build/Products/Debug-iphonesimulator/Reachability/Reachability.framework/Reachability, building for iOS Simulator-x86_64 but attempting to link with file built for iOS Simulator-arm64
Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_Reachability", referenced from:
      objc-class-ref in FLTConnectivityPlugin.o
  "_kReachabilityChangedNotification", referenced from:
      -[FLTConnectivityPlugin onListenWithArguments:eventSink:] in FLTConnectivityPlugin.o
ld: symbol(s) not found for architecture x86_64

I already followed the solution posted here: https://stackoverflow.com/a/63955114/8640235 and also others from the same post, but without success.

Later edit: enter image description here

Alexandru Rusu
  • 569
  • 1
  • 5
  • 21
  • I had this issue and nothing on SO helped me. The thing that solved it for me was to back up the code, create a new flutter project, and then slowly put code back until it breaks, and hopefully it won't break. This isn't quite a solution to this so I'll just leave this as a comment. – Amxela Apr 15 '21 at 17:47
  • this is not an error. this is a warning. you can ignore it – BIS Tech Apr 15 '21 at 17:51
  • 1
    I updated the post with a screenshot. – Alexandru Rusu Apr 15 '21 at 17:56
  • any updates? I'm stuck with this problem as well – Miguel de Sousa Jun 14 '21 at 18:12
  • 1
    Still facing this issue. For me works to create a build for a real device and to publish an app as well, but the build for an emulator is not working. – Alexandru Rusu Jun 15 '21 at 12:47

2 Answers2

0

create new project with flutter create and migrate the code into the new project.

Mohammed_7aafar
  • 385
  • 1
  • 6
  • 9
0

I faced the same problem. After removing the connectivity package from the flutter project the simulator works again as expected.

Klaus Fischer
  • 16
  • 1
  • 1