From 12f2cd4ecda1d5ec922fabc3b1f819963ed59c43 Mon Sep 17 00:00:00 2001 From: liangsen <1096359518@qq.com> Date: Thu, 24 Aug 2023 13:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9ViewController?= =?UTF-8?q?=E4=B8=8AnavigationItem.titleView=E7=9A=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MLeaksFinder.xcodeproj/project.pbxproj | 15 +++++++++++---- .../xcshareddata/IDEWorkspaceChecks.plist | 8 ++++++++ MLeaksFinder/UIViewController+MemoryLeak.m | 1 + Podfile.lock | 6 +++++- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 MLeaksFinder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist diff --git a/MLeaksFinder.xcodeproj/project.pbxproj b/MLeaksFinder.xcodeproj/project.pbxproj index 74cf4a0..3407a79 100644 --- a/MLeaksFinder.xcodeproj/project.pbxproj +++ b/MLeaksFinder.xcodeproj/project.pbxproj @@ -151,11 +151,11 @@ isa = PBXNativeTarget; buildConfigurationList = B3ADE1751C1BD1D600AA4F63 /* Build configuration list for PBXNativeTarget "MLeaksFinder" */; buildPhases = ( + 9E0BBC368849AFF24D69A961 /* [CP] Check Pods Manifest.lock */, 1E51A1E3538164E48103EBFB /* 📦 Check Pods Manifest.lock */, B3ADE1681C1BD1D600AA4F63 /* Sources */, B3ADE1691C1BD1D600AA4F63 /* Frameworks */, B3ADE16A1C1BD1D600AA4F63 /* CopyFiles */, - C5C5444B869098CC15440C05 /* 📦 Copy Pods Resources */, ); buildRules = ( ); @@ -213,19 +213,26 @@ shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n"; showEnvVarsInLog = 0; }; - C5C5444B869098CC15440C05 /* 📦 Copy Pods Resources */ = { + 9E0BBC368849AFF24D69A961 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( ); - name = "📦 Copy Pods Resources"; outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-MLeaksFinder-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MLeaksFinder/Pods-MLeaksFinder-resources.sh\"\n"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ diff --git a/MLeaksFinder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/MLeaksFinder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/MLeaksFinder.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/MLeaksFinder/UIViewController+MemoryLeak.m b/MLeaksFinder/UIViewController+MemoryLeak.m index 5c59bf6..f9795e3 100644 --- a/MLeaksFinder/UIViewController+MemoryLeak.m +++ b/MLeaksFinder/UIViewController+MemoryLeak.m @@ -66,6 +66,7 @@ - (BOOL)willDealloc { if (self.isViewLoaded) { [self willReleaseChild:self.view]; + [self willReleaseChild:self.navigationItem.titleView]; } return YES; diff --git a/Podfile.lock b/Podfile.lock index fb6fd46..06378f7 100644 --- a/Podfile.lock +++ b/Podfile.lock @@ -4,9 +4,13 @@ PODS: DEPENDENCIES: - FBRetainCycleDetector +SPEC REPOS: + trunk: + - FBRetainCycleDetector + SPEC CHECKSUMS: FBRetainCycleDetector: 45462f9ed1af0cd77224a4cc4e6dacaca47371b4 PODFILE CHECKSUM: 38741d1572d2c8740a441bc6562c61fa2ce1ef2e -COCOAPODS: 1.0.0 +COCOAPODS: 1.11.2