New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MacOS] Pod install error saying a package requires higher minimum deployment target (but the app is already set) #120
Comments
Can you try setting |
Surely, where can I find it? I just couldn't see. Thanks for replying this quick! |
I mean just do
|
Btw. nativeshell flutter build is completely separate from "regular" flutter build. It doesn't do any with the files inside |
After running it like this, it worked 🚀! Thanks a lot. Is there a way to make it permanent? Like storing that env variable? Because I think I have checked every possible place I find written
Actually, I learnt that by reading other issues, etc. but I just wanted to test it anyways. |
I think you should be able to call |
Yes, that also worked. Thanks a lot for spending your time! Just for a future reference, for any other reader, I am adding the code block below: fn build_flutter() -> BuildResult<()> {
Flutter::build(FlutterOptions {
// macos_extra_pods: &[
// "pod 'flutter_web_auth'",
// ],
..Default::default()
})?;
if cfg!(target_os = "macos") {
let options = AppBundleOptions {
bundle_name: "Superlist.app".into(),
bundle_display_name: "Superlist".into(),
icon_file: "icons/AppIcon.icns".into(),
..Default::default()
};
let resources = MacOSBundle::build(options)?;
resources.mkdir("icons")?;
resources.link("resources/mac_icon.icns", "icons/AppIcon.icns")?;
}
Ok(())
}
fn main() {
std::env::set_var("MACOSX_DEPLOYMENT_TARGET", "10.15"); // *****---> HERE GOES THE ENV
if let Err(error) = build_flutter() {
println!("\n** Build failed with error **\n\n{}", error);
panic!();
}
} |
Hi @knopp!
First of all, I want to thank you for developing all of this. This is a huge achievement to be honest.
Problem
I am getting an error after
cargo run
command. It complains that I have to use an higher minimum deployment target bu I already set that.What Have I Done?:
MacBook Pro (intel cpu)
, and the currentMacOS version is: 10.15.5
.cargo, resources, src, build.rs, Cargo.toml,
from App Template repo to my existing Flutter project folder.10.15
on XCode application.MACOSX_DEPLOYMENT_TARGET = 10.15
by manually checking this file at:macos/Flutter/ephemeral/.symlinks/plugins/flutter_web_auth/example/macos/Runner.xcodeproj/project.pbxproj
nativeshell: ^0.1.10
intopubspec.yaml
FVM (Flutter Version Manager)
. So I also refreshed the packages byfvm flutter pub get
cd macos
-->pod install
launch.json
file in.vscode
folder in order to use thatFlutter: Attach to Process
process.cargo run
and it generated lots of files into./target
folder. Then it gave this error below.One of the packages I use depends on this package
flutter_web_auth: ^0.3.1
. Without using NativeShell, I can normally debug and release this app, like half an hour ago.Error Log:
The text was updated successfully, but these errors were encountered: