From 51c909b38af62bb9e64b60c0061ff4c308eb031d Mon Sep 17 00:00:00 2001 From: niuhuan Date: Mon, 15 Jan 2024 18:29:41 +0800 Subject: [PATCH] :bug: m1 mac crash --- macos/Runner.xcodeproj/project.pbxproj | 33 ++----------------- .../xcschemes/xcschememanagement.plist | 4 +-- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 108fcb0..5ce18f4 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -27,8 +27,7 @@ 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; }; 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, ); }; }; + DDBDA9422B5540530015F619 /* libnative_static.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A3E7047C27BD3F4D00838FBB /* libnative_static.a */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -53,29 +52,8 @@ remoteGlobalIDString = CA60F0FEBE702969E816930C; remoteInfo = "native-staticlib"; }; - A3E7047F27BD3F6900838FBB /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = A3E7047427BD3F4D00838FBB /* native.xcodeproj */; - proxyType = 1; - remoteGlobalIDString = CA603EE7FF4DCCA7472EC19F; - remoteInfo = "native-cdylib"; - }; /* End PBXContainerItemProxy section */ -/* Begin PBXCopyFilesBuildPhase section */ - 33CC110E2044A8840003C045 /* Bundle Framework */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - DDBDA93D2B54E3A50015F619 /* native.dylib in Bundle Framework */, - ); - name = "Bundle Framework"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - /* Begin PBXFileReference section */ 2125D30E8A5E4598210E4742 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = ""; }; @@ -106,8 +84,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - A3E7048127BD3F8900838FBB /* native.dylib in Frameworks */, 39DF1FD8C6BB292AEF60BABA /* Pods_Runner.framework in Frameworks */, + DDBDA9422B5540530015F619 /* libnative_static.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -219,14 +197,12 @@ 33CC10E92044A3C60003C045 /* Sources */, 33CC10EA2044A3C60003C045 /* Frameworks */, 33CC10EB2044A3C60003C045 /* Resources */, - 33CC110E2044A8840003C045 /* Bundle Framework */, 3399D490228B24CF009A79C7 /* ShellScript */, 64B883B9994FA51C6014FB70 /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); dependencies = ( - A3E7048027BD3F6900838FBB /* PBXTargetDependency */, 33CC11202044C79F0003C045 /* PBXTargetDependency */, ); name = Runner; @@ -412,11 +388,6 @@ target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */; targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */; }; - A3E7048027BD3F6900838FBB /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - name = "native-cdylib"; - targetProxy = A3E7047F27BD3F6900838FBB /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin PBXVariantGroup section */ diff --git a/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist b/native/native.xcodeproj/xcuserdata/niuhuan.xcuserdatad/xcschemes/xcschememanagement.plist index 1ec0e74..a732079 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 - 5 + 4 native-staticlib.xcscheme_^#shared#^_ orderHint - 4 + 5