xcode11

NSInternalInconsistencyException while running VOIP enabled apps on iOS13

我是研究僧i 提交于 2020-06-27 18:00:06
问题 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks.' This error is displayed on xcode 11 Beta that uses iOS 13. No issue on xcode10. PushKit apps that use VoIP push must link either CallKit or IncomingCallNotifications frameworks. #voip 回答1: Embedding CallKit.framework in General Settings of the Project resolves this issue. On iOS 13, Apple now mandates that

ITMS-90034: Missing or invalid signature error

时间秒杀一切 提交于 2020-06-16 18:35:32
问题 This is the error message I get while uploading my app binary to iTunesConnect: ITMS-90034: Missing or invalid signature - The bundle 'com.myCompany.myApp' at bundle path 'Payload/myApp.app' is not signed using an Apple submission certificate. I compared the settings with another app of mine I successfully upload and hardly see any difference in the certificates or signing settings. Only one thing is different, though: myApp has an extension (Ads blocker) while the other one has none (but I

Weird behaviour of Xcode 11 Debugger - Showing values as nil when there's a value

笑着哭i 提交于 2020-06-14 06:02:09
问题 I just noticed weird behaviour of Xcode11, I am executing same code in Xcode 10 and Xcode 11. See the below attached screenshot for both the versions. I am creating a url from String, When I put a debugger and check the value of myUrl it shows nil although at very next line it passes nil check and control goes into the not nil case. See the console too. have anyone already faced this type of issue? or I am doing something wrong. P.S: Already Cleared cache, derived data, clean build, restart

Showing 'UIActivityViewController' in SwiftUI

 ̄綄美尐妖づ 提交于 2020-06-10 02:58:08
问题 I want to let the user to be able to share a Location but I don't know how to show UIActivityViewController in Swift UI 回答1: The basic implementation of UIActivityViewController in SwiftUI is import UIKit import SwiftUI struct ActivityViewController: UIViewControllerRepresentable { var activityItems: [Any] var applicationActivities: [UIActivity]? = nil func makeUIViewController(context: UIViewControllerRepresentableContext<ActivityViewController>) -> UIActivityViewController { let controller

Showing 'UIActivityViewController' in SwiftUI

天涯浪子 提交于 2020-06-10 02:57:13
问题 I want to let the user to be able to share a Location but I don't know how to show UIActivityViewController in Swift UI 回答1: The basic implementation of UIActivityViewController in SwiftUI is import UIKit import SwiftUI struct ActivityViewController: UIViewControllerRepresentable { var activityItems: [Any] var applicationActivities: [UIActivity]? = nil func makeUIViewController(context: UIViewControllerRepresentableContext<ActivityViewController>) -> UIActivityViewController { let controller

Not getting APNS Device token on ios 13

徘徊边缘 提交于 2020-06-10 02:37:29
问题 I have issue related to APNS device token . Before I was using Xcode 10.2 and iOS 12.1. At this moment I used to get the device token in delegate method -(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken I am registering for APNS like this and it was working fine. UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; [center requestAuthorizationWithOptions:

SwiftUI: unwanted split view on iPad

爱⌒轻易说出口 提交于 2020-06-09 16:55:13
问题 Problem: a view on Pad shows up with unwanted split view. My current setup is: Catalina OSX beta 5 + Xcode 11 Beta 5 Here is the code I used, with a Navigation View and a Navigation Title: import SwiftUI struct SwiftUIView: View { var body: some View { NavigationView { Text("Search") .navigationBarTitle(Text("Search")) } } } #if DEBUG struct SwiftUIView_Previews: PreviewProvider { static var previews: some View { SwiftUIView() } } #endif When simulated on iPad (both physical device and

iOS 13 Schedule iOS background tasks

孤者浪人 提交于 2020-06-09 12:17:59
问题 I am implementing BackgroundTasks Framework for updating the data. But I got the below issue Could not schedule refreshApp: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)" Could not schedule data featch: Error Domain=BGTaskSchedulerErrorDomain Code=1 "(null)" 2019-10-01 19:19:32.550320+0530 SOBackgroundTask[34131:1129470] Can't end BackgroundTask: no background task exists with identifier 3 (0x3), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to

XCode11 error “open(_:options:completionHandler:) is unavailable in application extensions”

拜拜、爱过 提交于 2020-06-01 03:07:52
问题 I just launched Touchgram v1.0 last week, which is 99% iMessage app extension, and am trying to update to XCode11. I'm now getting an error open(_:options:completionHandler:) is unavailable in application extensions I have confirmed this occurs even in a trivial sample that tries to launch a web URL from an iMessage app: For example: let openSel = #selector(UIApplication.open(_:options:completionHandler:)) while (responder != nil){ if responder?.responds(to: openSel ) == true { // cannot

XCode11 error “open(_:options:completionHandler:) is unavailable in application extensions”

社会主义新天地 提交于 2020-06-01 03:07:43
问题 I just launched Touchgram v1.0 last week, which is 99% iMessage app extension, and am trying to update to XCode11. I'm now getting an error open(_:options:completionHandler:) is unavailable in application extensions I have confirmed this occurs even in a trivial sample that tries to launch a web URL from an iMessage app: For example: let openSel = #selector(UIApplication.open(_:options:completionHandler:)) while (responder != nil){ if responder?.responds(to: openSel ) == true { // cannot