修复iOS17闪退bug
This commit is contained in:
4
Podfile
4
Podfile
@@ -82,6 +82,10 @@ post_install do |installer|
|
||||
project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
|
||||
xcconfig_path = config.base_configuration_reference.real_path
|
||||
xcconfig = File.read(xcconfig_path)
|
||||
xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
|
||||
File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@@ -3,7 +3,7 @@
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 51;
|
||||
objectVersion = 54;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
@@ -205,6 +205,7 @@
|
||||
233423D92AB0438400B1253F /* PIMessageContentServiceReplyModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 233423D82AB0438400B1253F /* PIMessageContentServiceReplyModel.m */; };
|
||||
234489082AC3C5DA0070E5D5 /* SudMGP.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 234489072AC3C5DA0070E5D5 /* SudMGP.framework */; };
|
||||
234489092AC3C5FF0070E5D5 /* SudMGP.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 234489072AC3C5DA0070E5D5 /* SudMGP.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||
234D821E2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 234D821D2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.m */; };
|
||||
236896A02AE6720600EED5F2 /* PIRoomGiftBroadcastWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 2368969F2AE6720600EED5F2 /* PIRoomGiftBroadcastWindow.m */; };
|
||||
2369F9912A89CE0E00563B48 /* PIUserSexView.m in Sources */ = {isa = PBXBuildFile; fileRef = 2369F9902A89CE0E00563B48 /* PIUserSexView.m */; };
|
||||
2369F9932A8B21EB00563B48 /* pi_treasure_fairy_gift_bg.svga in Resources */ = {isa = PBXBuildFile; fileRef = 2369F9922A8B21EA00563B48 /* pi_treasure_fairy_gift_bg.svga */; };
|
||||
@@ -1836,6 +1837,8 @@
|
||||
233423D82AB0438400B1253F /* PIMessageContentServiceReplyModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PIMessageContentServiceReplyModel.m; sourceTree = "<group>"; };
|
||||
23352A0D2A669D57001DB9B5 /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/Localizable.strings"; sourceTree = "<group>"; };
|
||||
234489072AC3C5DA0070E5D5 /* SudMGP.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = SudMGP.framework; sourceTree = "<group>"; };
|
||||
234D821C2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "YYTextAsyncLayer+PITextAsyncLayer.h"; path = "YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.h"; sourceTree = SOURCE_ROOT; };
|
||||
234D821D2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = "YYTextAsyncLayer+PITextAsyncLayer.m"; path = "YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.m"; sourceTree = SOURCE_ROOT; };
|
||||
2368969E2AE6720600EED5F2 /* PIRoomGiftBroadcastWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PIRoomGiftBroadcastWindow.h; sourceTree = "<group>"; };
|
||||
2368969F2AE6720600EED5F2 /* PIRoomGiftBroadcastWindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PIRoomGiftBroadcastWindow.m; sourceTree = "<group>"; };
|
||||
2369F98F2A89CE0E00563B48 /* PIUserSexView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PIUserSexView.h; sourceTree = "<group>"; };
|
||||
@@ -6878,10 +6881,12 @@
|
||||
children = (
|
||||
189DD52C26DE255300AB55B1 /* AppDelegate.h */,
|
||||
189DD52D26DE255300AB55B1 /* AppDelegate.m */,
|
||||
2323E0352ABDAE8F00CCAD2F /* FBSDKSettings+PISDKSettings.h */,
|
||||
2323E0362ABDAE8F00CCAD2F /* FBSDKSettings+PISDKSettings.m */,
|
||||
E81C27AC26EF39AB0031E639 /* AppDelegate+ThirdConfig.h */,
|
||||
E81C27AD26EF39AB0031E639 /* AppDelegate+ThirdConfig.m */,
|
||||
2323E0352ABDAE8F00CCAD2F /* FBSDKSettings+PISDKSettings.h */,
|
||||
2323E0362ABDAE8F00CCAD2F /* FBSDKSettings+PISDKSettings.m */,
|
||||
234D821C2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.h */,
|
||||
234D821D2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.m */,
|
||||
);
|
||||
path = AppDelegate;
|
||||
sourceTree = "<group>";
|
||||
@@ -10555,6 +10560,7 @@
|
||||
E801275827E347FD00BAC3F2 /* RoomPKRecordModel.m in Sources */,
|
||||
E8E0DAE0285C20E500566A2F /* MessageContentFindNewGreetView.m in Sources */,
|
||||
E8A3540128FEAC5E0014A784 /* XPWishGiftTableViewCell.m in Sources */,
|
||||
234D821E2AEC57CF0022EFEB /* YYTextAsyncLayer+PITextAsyncLayer.m in Sources */,
|
||||
23B2AEC12A64E9C200543D17 /* LoginForgetEditView.m in Sources */,
|
||||
E8EEB90326FC31DC007C6EBA /* XPMineUserInfoProtocol.h in Sources */,
|
||||
E8232603274E4AA0003A3332 /* ThemeColor+UserCard.m in Sources */,
|
||||
|
@@ -31,7 +31,7 @@
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
buildConfiguration = "Release"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
|
16
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.h
Normal file
16
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.h
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// YYTextAsyncLayer+PITextAsyncLayer.h
|
||||
// YuMi
|
||||
//
|
||||
// Created by duoban on 2023/10/28.
|
||||
//
|
||||
|
||||
#import <YYText/YYTextAsyncLayer.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYTextAsyncLayer (PITextAsyncLayer)
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
26
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.m
Normal file
26
YuMi/Appdelegate/YYTextAsyncLayer+PITextAsyncLayer.m
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// YYTextAsyncLayer+PITextAsyncLayer.m
|
||||
// YuMi
|
||||
//
|
||||
// Created by duoban on 2023/10/28.
|
||||
//
|
||||
|
||||
#import "YYTextAsyncLayer+PITextAsyncLayer.h"
|
||||
|
||||
@implementation YYTextAsyncLayer (PITextAsyncLayer)
|
||||
///iOS17bug,如果不把方法替换会闪退
|
||||
+(void)load {
|
||||
Method a = class_getInstanceMethod(self, @selector(display));
|
||||
Method b = class_getInstanceMethod(self, @selector(swizzing_display));
|
||||
method_exchangeImplementations(a, b);
|
||||
}
|
||||
-(void)swizzing_display{
|
||||
//通过变量名称获取类中的实例成员变量
|
||||
if (self.bounds.size.width<=0 || self.bounds.size.height<=0) {
|
||||
self.contents = nil;
|
||||
return;
|
||||
} else {
|
||||
[self swizzing_display];
|
||||
}
|
||||
}
|
||||
@end
|
@@ -8,7 +8,7 @@
|
||||
|
||||
#import "QEmotionHelper.h"
|
||||
#import "QEEmotionImageView.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
@interface QEmotionHelper()
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "UserPrivacyView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "YUMIConstant.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "XPLoginViewController.h"
|
||||
#import <Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "UIImage+Utils.h"
|
||||
#import "YUMIMacroUitls.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "MessageContentGuildView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "HttpRequestHelper.h"
|
||||
#import "AttachMentModel.h"
|
||||
#import "GuildMessageModel.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "MessageContentRiskAlertView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "MessageRiskAlertModel.h"
|
||||
|
||||
@interface MessageContentRiskAlertView ()
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "MessageContentSkillCardView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "HttpRequestHelper.h"
|
||||
#import "AttachMentModel.h"
|
||||
#import "GuildMessageModel.h"
|
||||
|
@@ -11,7 +11,7 @@
|
||||
#import "QEmotionHelper.h"
|
||||
#import <NIMSDK/NIMSDK.h>
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "MessageTextModel.h"
|
||||
#define MESSAGE_TEXT_PADDING 10
|
||||
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "PIMessageContentServiceReplyView.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "PIMessageContentServiceReplyModel.h"
|
||||
@interface PIMessageContentServiceReplyView()
|
||||
@property(nonatomic,strong) UIImageView *bgImageView;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "MessageGuildModel.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "AttachmentModel.h"
|
||||
#import "GuildMessageModel.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "MessageRiskAlertModel.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "AttachmentModel.h"
|
||||
#import "ContentRistAlertModel.h"
|
||||
#import "NSObject+MJExtension.h"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "MessageSkillCardModel.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "AttachmentModel.h"
|
||||
#import "GuildMessageModel.h"
|
||||
#import "NSObject+MJExtension.h"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "MessageTextModel.h"
|
||||
#import "QEmotionHelper.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
@implementation MessageTextModel
|
||||
|
||||
- (instancetype)initWithMessage:(NIMMessage *)message {
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "MessageTreasureFairyModel.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "AttachmentModel.h"
|
||||
#import "GuildMessageModel.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
|
@@ -10,7 +10,7 @@
|
||||
#import "YUMIMacroUitls.h"
|
||||
#import "UIView+NIM.h"
|
||||
#import "XPWebViewController.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <ReactiveObjC/ReactiveObjC.h>
|
||||
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#import "UIView+NIM.h"
|
||||
#import "QEmotionHelper.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import <Masonry/Masonry.h>
|
||||
|
||||
@interface SessionListCell()
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMineDataClanTableViewCell.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "NetImageView.h"
|
||||
#import "UIButton+EnlargeTouchArea.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMineGuildSetNameViewController.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
///P
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "XPNobleCenterMyNobleView.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
///Tool
|
||||
|
@@ -10,7 +10,7 @@
|
||||
#import <Masonry/Masonry.h>
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
@interface XPMineFriendNumberView ()
|
||||
///显示个数
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMineHeadView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "UIImage+Utils.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "XPMonentsLayoutConfig.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "DJDKMIMOMColor.h"
|
||||
///Model
|
||||
#import "MonentsInfoModel.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMonentsCommentTableViewCell.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "NetImageView.h"
|
||||
#import "DJDKMIMOMColor.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMonentsReplyTableViewCell.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYLabel.h>
|
||||
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "NetImageView.h"
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import "XPMonentsContentView.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
|
||||
#import "XPMonentsLayoutConfig.h"
|
||||
|
@@ -13,7 +13,7 @@
|
||||
#import <POP.h>
|
||||
#import "QGVAPConfigModel.h"
|
||||
#import "UIView+VAP.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import <UIImageView+WebCache.h>
|
||||
#import <libpag/libpag-umbrella.h>
|
||||
///Tool
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#import "YUMIMacroUitls.h"
|
||||
#import "ThemeColor+Room.h"
|
||||
#import "NetImageView.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
@interface XPRoomNobleLevelUpView ()
|
||||
///动画管理类
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "XPMessageInfoModel.h"
|
||||
#import "XPRoomMessageConstant.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
|
||||
@implementation XPMessageInfoModel
|
||||
|
@@ -6,7 +6,7 @@
|
||||
//
|
||||
|
||||
#import "XPRoomMessageParser.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import <NIMSDK/NIMSDK.h>
|
||||
#import <Masonry/Masonry.h>
|
||||
///Tool
|
||||
|
@@ -5,7 +5,7 @@
|
||||
// Created by zu on 2021/11/2.
|
||||
//
|
||||
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <NIMSDK/NIMSDK.h>
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "YUMIMacroUitls.h"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "XPRoomTrumpetViewController.h"
|
||||
///tool
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
|
||||
#import "ThemeColor+NobleCenter.h"
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "XPReleaseRadioViewController.h"
|
||||
///tool
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "YUMIMacroUitls.h"
|
||||
#import "XNDJTDDLoadingTool.h"
|
||||
|
@@ -9,7 +9,7 @@
|
||||
///Third
|
||||
#import <NIMSDK/NIMSDK.h>
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <YYText/YYLabel.h>
|
||||
|
||||
#import "TTPopup.h"
|
||||
#import <FFPopup/FFPopup.h>
|
||||
#import "HttpRequestHelper.h"
|
||||
|
@@ -9,7 +9,7 @@
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <SDCycleScrollView.h>
|
||||
#import <YYText.h>
|
||||
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "NSArray+Safe.h"
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#import "XPRoomSendRedPacketViewController.h"
|
||||
///tool
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "YUMIMacroUitls.h"
|
||||
#import "XNDJTDDLoadingTool.h"
|
||||
|
@@ -9,7 +9,6 @@
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
#import <SDCycleScrollView.h>
|
||||
#import <YYText.h>
|
||||
///Tool
|
||||
#import "DJDKMIMOMColor.h"
|
||||
#import "NetImageView.h"
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#import <POP.h>
|
||||
#import "QGVAPConfigModel.h"
|
||||
#import "UIView+VAP.h"
|
||||
#import <YYText/YYText.h>
|
||||
|
||||
#import <UIImageView+WebCache.h>
|
||||
///Tool
|
||||
#import "XPGiftStorage.h"
|
||||
|
@@ -52,4 +52,5 @@ isEnterprise = [bundleID isEqualToString:@"com.hflighting.yumi"];\
|
||||
#import "YUMINNNN.h"
|
||||
#import "NSObject+MJExtension.h"
|
||||
#import <MarqueeLabel-Swift.h>
|
||||
#import <YYText/YYText.h>
|
||||
#endif /* PrefixHeader_pch */
|
||||
|
Reference in New Issue
Block a user