From 8ce2cc0024d18698f7577e613e72f98c4096a5c1 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Mon, 15 Jan 2024 11:57:54 +0800 Subject: [PATCH] :bug: m1 mac crash --- .github/workflows/Release.yml | 3 --- macos/Runner.xcodeproj/project.pbxproj | 5 +++-- .../niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist | 4 ++-- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 8bfd28e..a415167 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -341,14 +341,11 @@ jobs: --class-name Native rustup target install x86_64-apple-darwin rustup target install aarch64-apple-darwin - cargo build --manifest-path native/Cargo.toml --release --target x86_64-apple-darwin - cargo build --manifest-path native/Cargo.toml --release --target aarch64-apple-darwin flutter config --enable-macos-desktop flutter build macos cd build mkdir appimage mv macos/Build/Products/Release/kobi.app appimage/ - lipo -create -output appimage/kobi.app/Contents/Frameworks/libnative.dylib ../native/target/x86_64-apple-darwin/release/libnative.dylib ../native/target/aarch64-apple-darwin/release/libnative.dylib ln -sf /Applications appimage/ hdiutil create -volname kobi -srcfolder appimage -ov -format UDBZ macos.dmg cd .. diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index b55b605..108fcb0 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -3,7 +3,7 @@ archiveVersion = 1; classes = { }; - objectVersion = 51; + objectVersion = 54; objects = { /* Begin PBXAggregateTarget section */ @@ -28,6 +28,7 @@ 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; }; 39DF1FD8C6BB292AEF60BABA /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A75F10C7796C538CDBB2D3B6 /* Pods_Runner.framework */; }; A3E7048127BD3F8900838FBB /* native.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = A3E7047A27BD3F4D00838FBB /* native.dylib */; }; + DDBDA93D2B54E3A50015F619 /* native.dylib in Bundle Framework */ = {isa = PBXBuildFile; fileRef = A3E7047A27BD3F4D00838FBB /* native.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -68,6 +69,7 @@ dstPath = ""; dstSubfolderSpec = 10; files = ( + DDBDA93D2B54E3A50015F619 /* native.dylib in Bundle Framework */, ); name = "Bundle Framework"; runOnlyForDeploymentPostprocessing = 0; @@ -186,7 +188,6 @@ A4E109539B1A5155136EFF51 /* Pods-Runner.release.xcconfig */, 374667F87D968847B0F999D3 /* Pods-Runner.profile.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; diff --git a/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist b/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist index f46054c..1ec0e74 100644 --- a/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist @@ -7,12 +7,12 @@ native-cdylib.xcscheme_^#shared#^_ orderHint - 6 + 5 native-staticlib.xcscheme_^#shared#^_ orderHint - 5 + 4