Closed ywu2014 closed 3 weeks ago
It seems that XCode 14.2 doesn't support the link option -ld_classic
, which is used to supress warnings like no platform load command found in ‘libxyz.a’, assuming: macOS
I will remove it from OTHER_LDFLAGS
tks!
@ywu2014 Update to 1.3.1 and try whether it works, -ld_classic
will not be added with XCode < 15.0
@rainyl still doesn't work
XCode version is 14.2
Well, kind of strange, looks like -ld_classic is still added.
Could you please run
cd ~/.pub-cache/hosted/pub.dev/opencv_dart-1.3.1/macos
pod lib lint --allow-warnings --verbose > a.log
and attach a.log
so I can analyze it?
Okay, reproduced, will working on it.
Well, kind of strange, looks like -ld_classic is still added.
Could you please run
cd ~/.pub-cache/hosted/pub.dev/opencv_dart-1.3.1/macos
pod lib lint --allow-warnings --verbose > a.log
and attach
a.log
so I can analyze it?
OK. In my system, dir ~/.pub-cache/hosted/pub.dev is empty, as shown below
so i route to pub.flutter-io.cn dir, and there is opencv_dart-1.3.1
@ywu2014 Fine.
it's because the expressions in podspec uploaded to Cocoapods will be evaluated and saved as constants in json, I have totally remove the link flag, try to use:
opencv_dart:
git:
url: https://github.com/rainyl/opencv_dart.git
ref: ebc1dc172854812e02c925c74eba195e335ae49b
path: packages/opencv_dart/
@ywu2014 Fine.
it's because the expressions in podspec uploaded to Cocoapods will be evaluated and saved as constants in json, I have totally remove the link flag, try to use:
opencv_dart: git: url: https://github.com/rainyl/opencv_dart.git ref: ebc1dc172854812e02c925c74eba195e335ae49b path: packages/opencv_dart/
i have tried, but this time shows iOS deployment version problem
and i just create project support MacOS only, this is my project create command flutter create demo3 --platforms=macos
,and form vscode left side view,there's no iOS related files or dir
It's strange, since DartCvMacOS only supports osx, 10.15 https://github.com/rainyl/dartcv/blob/13b077fd98475ff49aff50400f7a8f34aae62b95/DartCvMacOS.podspec#L30
I tested it using:
flutter create --template=app --platforms=macos demo
macos/Podfile
and change the minimum version to 10.15flutter run -d "macos"
and it works, so try to remove the project and create a fresh one. You can also run pod cache clean --all
to delete the cache.
i followed your steps,and below is the result in my system
@ywu2014 try to remove the cache of cocoapods, rm -rf ~/.cocoapods/repos/trunk
@ywu2014 try to remove the cache of cocoapods,
rm -rf ~/.cocoapods/repos/trunk
the same problem, nothing changed
even if i run
sad 😢 , I don't know why ...
Contact me via my email at https://github.com/rainyl if you still want to use it. I will send you my Wechat.
OK, tks!
i just upgrade my cocoapods version from 1.15.2 to 1.16.2 right now, and it works! thanks!
i just upgrade my cocoapods version from 1.15.2 to 1.16.2 right now, and it works! thanks!
Glad it works! have fun :)
Describe the bug "opencv_dart" requires a higher minimum macOS deployment version;when i tried to resolve this problem, ld: library not found for -ld_classic occured
To Reproduce Steps to reproduce the behavior:
flutter run -d macos
to start the projectExpected behavior
Screenshots
Desktop (please complete the following information):
Additional context i tried to change minimum macOS deployment version by modify platform :osx '10.14' in macos/Podfile to platform :osx '10.15' as below but another problem appear as show below