xcode

Xcode 12 beta and iOS 14: Weird console logs “objc[5551]: Class … is implemented in both”

时间秒杀一切 提交于 2021-01-20 17:54:07
问题 I have just downloaded Xcode 12 beta 2 and now I'm getting a bunch of weird logs in the console while I'm running my app (these warnings don't appear when using Xcode 11.5). They look like the following one: objc[5551]: Class CSAudioFileManager is implemented in both /Applications/Xcode-beta.app/Contents/Developer/Platforms/ iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/ Contents/Resources/RuntimeRoot/System/Library/ PrivateFrameworks/SpeakerRecognition

How can I remove iPad support from AppStore

白昼怎懂夜的黑 提交于 2021-01-20 16:01:29
问题 How I can upload new version into AppStore without iPad support. 回答1: You cannot do this. Apple says that you cannot take away supporting a specific device type once you do it. Developers who wish to issue updates, but remove device support, have three choices: Fix their app so that it can work on the devices they originally set out to support. Target a newer version of iOS that requires a newer device. Remove their app from the store, and upload the new app with a different bundle ID. Apple

How can I remove iPad support from AppStore

蓝咒 提交于 2021-01-20 15:55:49
问题 How I can upload new version into AppStore without iPad support. 回答1: You cannot do this. Apple says that you cannot take away supporting a specific device type once you do it. Developers who wish to issue updates, but remove device support, have three choices: Fix their app so that it can work on the devices they originally set out to support. Target a newer version of iOS that requires a newer device. Remove their app from the store, and upload the new app with a different bundle ID. Apple

Xcode: “The working copy ____ has uncommitted changes” vs. git status: “nothing to commit, working directory clean”

左心房为你撑大大i 提交于 2021-01-20 14:59:11
问题 In Xcode 5.0.2, I try to pull from a remote and am given the following message: "The working copy 'project-name' has uncommitted changes. Commit or discard the changes and try again." Fair enough. I pull up the commit dialog, and am then given the message, "This file does not exist at the requested revision." Clicking 'OK' brings me on into the commit dialog. (There is no revision displayed in the right pane, presumably for the same reason I was given the most recent message.) Selecting the

How can I preview a device in landscape mode in SwiftUI?

本小妞迷上赌 提交于 2021-01-20 14:38:39
问题 How can I preview a device in landscape mode in SwiftUI? I just have a simple preview like this: struct ContentView_Previews : PreviewProvider { static var previews: some View { ContentView() } } 回答1: You can't rotate the device in preview ( yet ), but you can set the size to any landscape size you want for PreviewProvider : struct ContentView_Previews : PreviewProvider { static var previews: some View { ContentView() .previewLayout(.fixed(width: 1024, height: 768)) // iPad Mini landscape

How can I preview a device in landscape mode in SwiftUI?

寵の児 提交于 2021-01-20 14:37:11
问题 How can I preview a device in landscape mode in SwiftUI? I just have a simple preview like this: struct ContentView_Previews : PreviewProvider { static var previews: some View { ContentView() } } 回答1: You can't rotate the device in preview ( yet ), but you can set the size to any landscape size you want for PreviewProvider : struct ContentView_Previews : PreviewProvider { static var previews: some View { ContentView() .previewLayout(.fixed(width: 1024, height: 768)) // iPad Mini landscape

Value of type 'Tags' has no member 'lastUsed'

被刻印的时光 ゝ 提交于 2021-01-20 09:14:42
问题 I have a class, Tags, in Swift. public class Tags { var lastUsed​: UInt64 var frequency: Int var id: String var name​: String init(id: String = "", frequency: Int, lastUsed: UInt64, name: String) { self.id = id self.frequency = frequency self.lastUsed​ = lastUsed self.name​ = name } } I can access the fields from some classes in my project, but funny enough I cant seem to access some of the fields from some classes. The offending fields are lastUsed and name . When I run Find Selected Symbol

Value of type 'Tags' has no member 'lastUsed'

笑着哭i 提交于 2021-01-20 09:13:17
问题 I have a class, Tags, in Swift. public class Tags { var lastUsed​: UInt64 var frequency: Int var id: String var name​: String init(id: String = "", frequency: Int, lastUsed: UInt64, name: String) { self.id = id self.frequency = frequency self.lastUsed​ = lastUsed self.name​ = name } } I can access the fields from some classes in my project, but funny enough I cant seem to access some of the fields from some classes. The offending fields are lastUsed and name . When I run Find Selected Symbol

Value of type 'Tags' has no member 'lastUsed'

痞子三分冷 提交于 2021-01-20 09:13:17
问题 I have a class, Tags, in Swift. public class Tags { var lastUsed​: UInt64 var frequency: Int var id: String var name​: String init(id: String = "", frequency: Int, lastUsed: UInt64, name: String) { self.id = id self.frequency = frequency self.lastUsed​ = lastUsed self.name​ = name } } I can access the fields from some classes in my project, but funny enough I cant seem to access some of the fields from some classes. The offending fields are lastUsed and name . When I run Find Selected Symbol

Why does this SwiftUI Picker code not work?

≯℡__Kan透↙ 提交于 2021-01-19 05:56:29
问题 Xcode: 11.2.1 The code below is for a simple form with two components; a Picker (to select a letter) and a Text (to display the selected letter). The code compiles and runs but, when a letter is selected it does not appear in the "Selected..." text. In addition, Xcode displays a (spurious?) run time warning the first time (only) a letter is selected.. struct ContentView: View { @State private var letter = "" private let letters = ["Alpha", "Bravo", "Charlie"] var body: some View {