Fix Build

This commit is contained in:
砍砍
2024-12-06 17:42:19 +08:00
parent 28f8f71e0a
commit af3fa410a6
2 changed files with 5 additions and 3 deletions
@@ -420,6 +420,7 @@
CURRENT_PROJECT_VERSION = 12; CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = 73YMMDVT2M; DEVELOPMENT_TEAM = 73YMMDVT2M;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 73YMMDVT2M; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 73YMMDVT2M;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
INFOPLIST_FILE = App/Info.plist; INFOPLIST_FILE = App/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.0; IPHONEOS_DEPLOYMENT_TARGET = 16.0;
@@ -450,6 +451,7 @@
CURRENT_PROJECT_VERSION = 12; CURRENT_PROJECT_VERSION = 12;
DEVELOPMENT_TEAM = 73YMMDVT2M; DEVELOPMENT_TEAM = 73YMMDVT2M;
"DEVELOPMENT_TEAM[sdk=iphoneos*]" = 73YMMDVT2M; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 73YMMDVT2M;
ENABLE_USER_SCRIPT_SANDBOXING = NO;
INFOPLIST_FILE = App/Info.plist; INFOPLIST_FILE = App/Info.plist;
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity"; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.productivity";
IPHONEOS_DEPLOYMENT_TARGET = 16.0; IPHONEOS_DEPLOYMENT_TARGET = 16.0;
@@ -99,7 +99,7 @@ public class IntelligentsChatController: UIViewController {
tableView.trailingAnchor.constraint(equalTo: view.trailingAnchor), tableView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
tableView.bottomAnchor.constraint(equalTo: inputBox.topAnchor), tableView.bottomAnchor.constraint(equalTo: inputBox.topAnchor),
].forEach { $0.isActive = true } ].forEach { $0.isActive = true }
view.addSubview(progressView) view.addSubview(progressView)
progressView.hidesWhenStopped = true progressView.hidesWhenStopped = true
progressView.stopAnimating() progressView.stopAnimating()
@@ -109,14 +109,14 @@ public class IntelligentsChatController: UIViewController {
progressView.centerYAnchor.constraint(equalTo: inputBox.centerYAnchor), progressView.centerYAnchor.constraint(equalTo: inputBox.centerYAnchor),
].forEach { $0.isActive = true } ].forEach { $0.isActive = true }
progressView.style = .large progressView.style = .large
inputBox.editor.controlBanner.sendButton.addTarget( inputBox.editor.controlBanner.sendButton.addTarget(
self, self,
action: #selector(send), action: #selector(send),
for: .touchUpInside for: .touchUpInside
) )
} }
@objc func send() { @objc func send() {
assert(Thread.isMainThread) assert(Thread.isMainThread)
} }