Skip to content

Commit

Permalink
fix: bundleIdentifier cannot be nil
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed May 2, 2024
1 parent 2f04062 commit 313c17b
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,18 @@ - (void)setupAppModelList {
NSArray<EZAppModel *> *allAppModelList = [EZLocalStorage.shared selectTextTypeAppModelList];
NSWorkspace* workspace = [NSWorkspace sharedWorkspace];
for (EZAppModel *appModel in allAppModelList) {
NSURL *appURL = [workspace URLForApplicationWithBundleIdentifier:appModel.appBundleID];
if (appURL) {
[self.appModelList addObject:appModel];
/**
Fix appcenter issue
-[EZDisableAutoSelectTextViewController setupAppModelList]
EZDisableAutoSelectTextViewController.m, line 85
SIGABRT: Invalid parameter not satisfying: bundleIdentifier != nil
*/
if (appModel.appBundleID) {
NSURL *appURL = [workspace URLForApplicationWithBundleIdentifier:appModel.appBundleID];
if (appURL) {
[self.appModelList addObject:appModel];
}
}
}
}
Expand Down

0 comments on commit 313c17b

Please sign in to comment.