我制作了一个 Pod Xcode 11 和 iOS 13,创建了一个 UIScrollview 并将我的内容设置在那里。
在较旧的主项目上安装时,此警报消息显示:
iOS 11.0 之前的内容和框架布局指南
我可以在 Interface Builder 中看到上述布局指南:
我怎样才能删除它们?
我今天更新了Xcode(Xcode 11.0),现在每次尝试在iPhone(iOS 13.1)上运行任何项目时它都崩溃。
已经尝试过:
奇怪的是Xcode活动没有显示“正在安装应用程序”阶段,它直接进入“在设备上运行应用程序”然后崩溃。在模拟器上运行可以正常工作。
已经在Apple论坛上进行了搜索,并将报告发送给了Apple,但也许我可以做些解决该问题的事情。
错误日志:
Process: Xcode [873]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 11.0 (14936)
Build Info: IDEFrameworks-14936000000000000~3
App Item ID: 497799835
App External ID: 832762837
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [873]
User ID: 502
Date/Time: 2019-09-25 11:47:10.497 -0300
OS Version: Mac OS X 10.14.6 (18G95)
Report Version: 12
Anonymous UUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Time Awake Since Boot: 550 seconds
System Integrity Protection: enabled
Crashed Thread: 16 Dispatch queue: …Run Code Online (Sandbox Code Playgroud) 我有一个Intent Extension与View该工作相当不错的用于显示应用程序的信息类别。
现在TouchID出于安全原因需要启用,因此用户需要在请求信息之前进行身份验证。
我尝试了这个:
func handle(intent: GetSaldoIntent, completion: @escaping (GetSaldoIntentResponse) -> Void) {
let myContext = LAContext()
myContext.evaluatePolicy(
.deviceOwnerAuthenticationWithBiometrics,
localizedReason: "Unlock to see the info",
reply: { [unowned self] (success, error) -> Void in
if( success ) {
completion(GetSaldoIntentResponse.success(saldo: String(self.paymentProvider.balance)))
return
}
})
completion(GetSaldoIntentResponse(code: .failureRequiringAppLaunch, userActivity: nil))
}
}
Run Code Online (Sandbox Code Playgroud)
但是TouchID对话框关闭Siri屏幕,然后对话结束:
有没有一种方法可以请求TouchId内部验证Intent Extension?
我知道可以PKPayment做类似的事情,但这不是交易,所以我不能使用ApplePay。
我‘Alamofire’, ‘~> 5.0.0-beta.5’在我的 swift 项目中通过 CocoaPods使用。现在我正在尝试使用Alamofire (~> 5.0.0-rc.2).
不幸的是,我在应用“pod install”命令行后出现以下错误:
CocoaPods 找不到 pod“Alamofire”的兼容版本:在 Podfile 中:Alamofire (~> 5.0.0-rc.2)
有什么帮助吗?
我有一个名为“watchTest”的 Apple Watch 扩展。我正在尝试添加Alamofire此扩展程序,但直到现在还没有成功。
我的播客文件:
source "https://github.com/CocoaPods/Specs.git"
platform :ios, '9.3'
use_frameworks!
target 'buttonExample' do
pod 'Alamofire'
end
target 'watchTest' do
pod 'Alamofire'
target 'watchTest Extension' do
inherit! :search_paths
end
end
Run Code Online (Sandbox Code Playgroud)
Pod 安装日志(警告可能是问题的根源):
Analyzing dependencies
Downloading dependencies
Using Alamofire (4.9.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] The `watchTest [Debug]` target overrides the `ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES` build setting defined in `Pods/Target Support Files/Pods-watchTest/Pods-watchTest.debug.xcconfig'. This …Run Code Online (Sandbox Code Playgroud) 我有一个关于异步编程的问题:
带任务的异步代码(不带异步/等待)和带异步/等待的异步代码有什么区别?
在C#中,我们可以使用Task来编写异步代码或方法,也可以使用关键字。
带任务的异步代码(无异步/等待)
static Task DoWorkAsync()
{
var work = Task.Run(() => { Thread.Sleep(5000); });
var workcompleted = work.ContinueWith((x) => { Console.WriteLine("Work Completed!!!"); });
return work;
}
Run Code Online (Sandbox Code Playgroud)
带有 Async/Await 的异步代码
static async Task DoWorkAsync()
{
await Task.Run(() => { Thread.Sleep(10000); });
Console.WriteLine("Work Completed");
}
Run Code Online (Sandbox Code Playgroud)
如果能回答我的问题,我真的很感激。
ios ×3
swift ×3
cocoapods ×2
xcode ×2
.net ×1
alamofire ×1
apple-watch ×1
async-await ×1
asynchronous ×1
c# ×1
ios13 ×1
sirikit ×1
task ×1