Closed ride4sun closed 2 years ago
I advice to check the IPHONEOS_DEPLOYMENT_TARGET
in your project.pbxproj
file we need a minimum iOS version of 10.
See for example: https://github.com/PhilipsHue/flutter_reactive_ble/blob/9bd6ed07672c88ea99e9e4740012f8ebc4d02f2c/example/ios/Runner.xcodeproj/project.pbxproj#L361
Let me know if this solves the issue.
The main project references 12.3 - does it has to be 11? Here is the find output:
No that should be fine. Maybe uncomment
# platform :ios, '9.0'
in your pod file and set it to 11.0 (or 12.3 )?
Updated everything to 11.0 just to make sure including platform :ios, '11.0'
. Did run a clean which is:
flutterpod repo update
rm ios/Podfile.lock
rm -rf ios/Pods/
rm .flutter-plugins
rm .packages
rm pubspec.lock
flutter packages upgrade
flutter clean
and get the same outcome after flutter run
Mhhm - the end of the build output is this (same as above)
note: Using new build system
note: Planning
note: Build preparation complete
warning: Multiple targets match implicit dependency for linker flags '-framework Reachability'. Consider adding an explicit dependency on the intended target to resolve this ambiguity. (in
target 'Runner' from project 'Runner')
note: Target 'Reachability' (in project 'Pods')
note: Target 'ReachabilitySwift' (in project 'Pods')
note: Building targets in dependency order
that might point to something - any idea?
which points to this:
I found on the end of my podfile this:
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
end
end
end
I changed the 9 to 11 and that compiles.
Now when the program want to start I get an exception at startup
Xcode build done. 543.0s
(lldb) dyld[6556]: Symbol not found: _OBJC_CLASS_$_Reachability
Referenced from: /private/var/containers/Bundle/Application/9524EED3-E189-4E90-904B-13CBBC57D86B/Runner.app/Frameworks/connectivity.framework/connectivity
Expected in: /private/var/containers/Bundle/Application/9524EED3-E189-4E90-904B-13CBBC57D86B/Runner.app/Frameworks/Reachability.framework/Reachability
* thread #1, stop reason = signal SIGABRT
frame #0: 0x000000010456a9b4 dyld`__abort_with_payload + 8
dyld`__abort_with_payload:
-> 0x10456a9b4 <+8>: b.lo 0x10456a9d0 ; <+36>
0x10456a9b8 <+12>: stp x29, x30, [sp, #-0x10]!
0x10456a9bc <+16>: mov x29, sp
0x10456a9c0 <+20>: bl 0x104531568 ; cerror_nocancel
Target 0: (Runner) stopped.
Installing and launching... 36.0s
Error launching application on iPhone 6s.
this seemed to be related to this: https://github.com/flutter/flutter/issues/69159
When I look into my Dart Packages I see both connectivity and connectivity plus.
Well in short - I am stuck again. I will try to drop the connectivity package. Any idea ? This might not be related to the open issue.
After removing the connectivity package all works - this can be closed. Thank you
Describe the bug I get error messages when compile for IOS saying I need IOS 10.0 or newer. I did read the comments on the other defect related to this but still can not solve this and I am stuck. My deployment target is set to 12.3 I did read #55 but could not get it to compile
versions: