xcode11

UIMenuController in iOS 13 beta shows with transparent background instead of black background

我与影子孤独终老i 提交于 2020-07-22 06:29:04
问题 I am using UIMenuController to display custom options. It was working fine with a black background and white text on UIMenuItems till iOS 12. After upgrading to iOS 13 beta 8 with Xcode 11 beta 7, the background changed to transparent. Is there anyone else facing this problem? 来源: https://stackoverflow.com/questions/57699513/uimenucontroller-in-ios-13-beta-shows-with-transparent-background-instead-of-bla

How to build a Fat Framework that includes Mac Catalyst?

点点圈 提交于 2020-07-18 17:44:35
问题 How does one build a fat framework that includes the architectures necessary to build to Mac Catalyst apps? 回答1: Apple has introduced a (undocumented?) new target: x86_64-apple-ios13.0-macabi How to build for this target depends on your frameworks build environment. 1) XCFramework In case your framework is an Xcode project: Select the target in Xcode Select the "General" tab Under "Deployment Info", tick the "Mac" checkbox: build 2) External Build In case you are building your framework

Mac Catalyst and iOS 13.5

旧巷老猫 提交于 2020-07-18 11:58:27
问题 I am currently getting a weird warning from Xcode 11.5 (I'm using the release version): The Mac Catalyst deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 13.5, but the range of supported deployment target versions is 13.1 to 13.4.99. I did a web search and haven't seen this message mentioned by anybody. Now, I could set my deployment back to iOS 13.0 (I'm not using any special features in iOS 13.5 in my project), but was wondering why this particular warning is being issued? Certainly

How to delete Swift Package Dependency in Xcode 11?

微笑、不失礼 提交于 2020-07-17 09:19:04
问题 I have a project in Xcode 11 that I added Swift Package Manager dependencies to. I now realized that I no longer need one of the package dependencies I previously added to my project. As you can see below, there are no options under File > Swift Packages for deleting a packager from Swift Package Manager for this project. I have tried removing the package from the array in the project.xcworkspace/xcshareddata/swiftpm/Package.resolved file. But it still doesn't remove it from Xcode, and the

SwiftUI Change View with Button

拟墨画扇 提交于 2020-07-17 05:57:38
问题 I understand there is PresentationButton and NavigationButton in order to change views in the latest SwiftUI. However I want to do a simple operation like below. When user clicks on SignIn button if credentials are correct it will sign them in but also do a segue (in this case change the view). However I could not check if they are correct in PresentationButton and I could not change the view in a normal button. Is there another way to do that? @IBAction func signInClicked(_ sender: Any) { if

How to properly copy files to Application Scripts folder from Sandboxed App?

旧街凉风 提交于 2020-07-16 07:01:21
问题 I'm really confused about how to properly copy files and grant permission to execute e.g. an AppleScript file from a sandboxed application. I've read several articles and threads but the more I read, the more it confuses me. The Task My app needs to run a very simple AppleScript from an .scpt file. To do so (if I got this right), I need to copy this file into Users/thisUser/Library/Application \Scripts/.com.developerName.appName/ . Before I can interact with this folder the user needs to

Xcode11 Editors (via “Add Editor to Right”) are disabled

瘦欲@ 提交于 2020-07-14 21:20:30
问题 It has been working all this while since I upgraded to Xcode11.2 . A couple of days back noticed it and now it's not allowing me to add an editor to the layout. Similar to Editor changes introduced in Xcode 11. Tried: Restarting Xcode Rebooting MacBook No Xcode update pending in AppStore Any other suggestions to try before reinstalling the Xcode? Current State for Xcode: Disabled Editor add option Disabled Editor option via Menu->Editor Update A: After using "Adjust Editor Option" This

CoreData crash error Xcode 11 Beta, IOS 13 Beta

半城伤御伤魂 提交于 2020-07-04 10:11:22
问题 Im trying building my application from Xcode11 beta on phone IOS 13 Beta. I have crash when application loading. 2019-07-22 13:58:12.910460+0300 GoodWine[3738:792501] [error] fault: One or more models in this application are using transformable properties with transformer names that are either unset, or set to NSKeyedUnarchiveFromDataTransformerName. Please switch to using "NSSecureUnarchiveFromData" or a subclass of NSSecureUnarchiveFromDataTransformer instead. At some point, Core Data will

update CFBundleShortVersionString with script gives error in Xcode 11

China☆狼群 提交于 2020-06-29 05:05:12
问题 I am trying to update with this script my extension app which is inside the main app. In general when i commit with svn, the version of my main app update, now i need to update the extension version also. I am trying to use the following script but seems it gives error. any idea? this is the example: version_number=$1 build_number=$2 # echo "version_number is $version_number" echo "build_number is $build_number" pruvitInfoPlist="ServiceExtension/Info.plist" /usr/libexec/PlistBuddy -c "Set

NSInternalInconsistencyException while running VOIP enabled apps on iOS13

蓝咒 提交于 2020-06-27 18:00:32
问题 *** 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