Post

Replies

Boosts

Views

Activity

Reply to I'm new but my hardware isn't
It is normally not possible, as maximum target with Xcode 10.1 is iOS 12. haven't you an iPhone with iOS 12 ? have a look here, you may find some advice: https://developer.apple.com/forums/thread/115043 In any case, if you want to publish some day on the AppStore, you'll need Xcode 12 at least.
May ’21
Reply to Error Message using AVFoundation
What is the complete error message you get ? Do you query query a MatrixMixer AudioUnit ? If so, may have a look here: https://stackoverflow.com/questions/38315905/kaudiounitproperty-matrixlevels-in-swift Note: line 1, you don't need all the cast. In addition, if not url, it will cause compiler error. So, useless. if url is effectively a URL, just write let avasset = AVAsset(url: url)
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Error loading Storyboard
I found this older thread where exact same problem showed (with the same cache directory). Solution proposed was: https://developer.apple.com/forums/thread/123204 having the same crash on XCode 11.2.1 . I went on to "Show package contents" of the ".xcworkspace" workspace directory and deleted "xcuserdata" folder. This resolved the crash for me.
May ’21
Reply to Error loading Storyboard
Seems you are using an old beta. Download Xcode 12.4 (or 12.5 if you run BigSur) Can download 12.4 here: https://developer.apple.com/download/more/ And try open the project. You should also test that a new project works. If that's not OK for your project: First make a copy of your project and work on this copy. Can you identify the object : MCj-i5-HUl ? You could open the storyboard in an editor to search for 'MCj-i5-HUl' Try to remove completely this object, which should remove all constraints Then try to reopen the project And recreate the deleted object.
May ’21
Reply to What is a scope ?
Do you understand the problem ? You use HexagonParameters, but is is nowhere defined. How could the compiler guess what it is ? In your code, just add the struct definition: import SwiftUI struct HexagonParameters { struct Segment { let useWidth: (CGFloat, CGFloat, CGFloat) let xFactors: (CGFloat, CGFloat, CGFloat) let useHeight: (CGFloat, CGFloat, CGFloat) let yFactors: (CGFloat, CGFloat, CGFloat) } static let adjustment: CGFloat = 0.085 static let points = [ Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.60, 0.40, 0.50), useHeight: (1.00, 1.00, 0.00), yFactors: (0.05, 0.05, 0.00) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.05, 0.00, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.20 + adjustment, 0.30 + adjustment, 0.25 + adjustment) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.00, 0.05, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.70 - adjustment, 0.80 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.40, 0.60, 0.50), useHeight: (1.00, 1.00, 1.00), yFactors: (0.95, 0.95, 1.00) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.95, 1.00, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.80 - adjustment, 0.70 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (1.00, 0.95, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.30 + adjustment, 0.20 + adjustment, 0.25 + adjustment) ) ] } struct BadgeBackground: View { var body: some View { Path { path in var width: CGFloat = 100.0 let height = width path.move( to: CGPoint( x: width * 0.95, y: height * 0.20 ) ) HexagonParameters.segments.forEach { segment in path.addLine( to: CGPoint( x: width * segment.line.x, y: height * segment.line.y ) ) } } .fill(Color.black) } } struct BadgeBackground_Previews: PreviewProvider { static var previews: some View { BadgeBackground() } }
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to 'iPhone unsupported OS version'
Can't you install Xcode 12.5 ? Xcode 12.5 includes SDKs for iOS 14.5, iPadOS 14.5, tvOS 14.5, watchOS 7.4, and macOS Big Sur 11.3. The Xcode 12.5 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.5 requires a Mac running macOS Big Sur 11 or later.
May ’21
Reply to countryCode fetched from storefront is nil on iOS 14
That seems to be a frequent bug. https://developer.apple.com/forums/thread/663465 This video (no sound!) which shows how it works on 13 and no way on 14. https ://www.youtube. com/watch?v=F2ojC6TNwws You should contact Developers Support or even burn a DTS ticket if critical.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to I'm new but my hardware isn't
It is normally not possible, as maximum target with Xcode 10.1 is iOS 12. haven't you an iPhone with iOS 12 ? have a look here, you may find some advice: https://developer.apple.com/forums/thread/115043 In any case, if you want to publish some day on the AppStore, you'll need Xcode 12 at least.
Replies
Boosts
Views
Activity
May ’21
Reply to countryCode fetched from storefront is nil on iOS 14
In fact, SKPaymentQueue.default().storefront itself is nil.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Error Message using AVFoundation
What is the complete error message you get ? Do you query query a MatrixMixer AudioUnit ? If so, may have a look here: https://stackoverflow.com/questions/38315905/kaudiounitproperty-matrixlevels-in-swift Note: line 1, you don't need all the cast. In addition, if not url, it will cause compiler error. So, useless. if url is effectively a URL, just write let avasset = AVAsset(url: url)
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to MacBook Pro 2019 Model stuck on booting
Did you try the usual clear PRAM ? https://support.apple.com/en-us/HT204063 or Resetting the system management controller (SMC) https://support.apple.com/en-us/HT201295
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Error loading Storyboard
I found this older thread where exact same problem showed (with the same cache directory). Solution proposed was: https://developer.apple.com/forums/thread/123204 having the same crash on XCode 11.2.1 . I went on to "Show package contents" of the ".xcworkspace" workspace directory and deleted "xcuserdata" folder. This resolved the crash for me.
Replies
Boosts
Views
Activity
May ’21
Reply to How to create IEEE P1363 signature
I reached my limits… Hope this can help, or at least give some hints: https://stackoverflow.com/questions/50756907/how-to-convert-ecdsa-der-encoded-signature-data-to-microsoft-cng-supported-forma
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Error loading Storyboard
Seems you are using an old beta. Download Xcode 12.4 (or 12.5 if you run BigSur) Can download 12.4 here: https://developer.apple.com/download/more/ And try open the project. You should also test that a new project works. If that's not OK for your project: First make a copy of your project and work on this copy. Can you identify the object : MCj-i5-HUl ? You could open the storyboard in an editor to search for 'MCj-i5-HUl' Try to remove completely this object, which should remove all constraints Then try to reopen the project And recreate the deleted object.
Replies
Boosts
Views
Activity
May ’21
Reply to Location permission dialog disappears after 1 second
In the test I did, it did work with : @ObservedObject var locationManager = LocationManager()
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Location permission dialog disappears after 1 second
To be more precise. I copied your exact code, except for line @EnvironmentObject var sessionManager: SessionManager that I commented out.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to What is a scope ?
Do you understand the problem ? You use HexagonParameters, but is is nowhere defined. How could the compiler guess what it is ? In your code, just add the struct definition: import SwiftUI struct HexagonParameters { struct Segment { let useWidth: (CGFloat, CGFloat, CGFloat) let xFactors: (CGFloat, CGFloat, CGFloat) let useHeight: (CGFloat, CGFloat, CGFloat) let yFactors: (CGFloat, CGFloat, CGFloat) } static let adjustment: CGFloat = 0.085 static let points = [ Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.60, 0.40, 0.50), useHeight: (1.00, 1.00, 0.00), yFactors: (0.05, 0.05, 0.00) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.05, 0.00, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.20 + adjustment, 0.30 + adjustment, 0.25 + adjustment) ), Segment( useWidth: (1.00, 1.00, 0.00), xFactors: (0.00, 0.05, 0.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.70 - adjustment, 0.80 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.40, 0.60, 0.50), useHeight: (1.00, 1.00, 1.00), yFactors: (0.95, 0.95, 1.00) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (0.95, 1.00, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.80 - adjustment, 0.70 - adjustment, 0.75 - adjustment) ), Segment( useWidth: (1.00, 1.00, 1.00), xFactors: (1.00, 0.95, 1.00), useHeight: (1.00, 1.00, 1.00), yFactors: (0.30 + adjustment, 0.20 + adjustment, 0.25 + adjustment) ) ] } struct BadgeBackground: View { var body: some View { Path { path in var width: CGFloat = 100.0 let height = width path.move( to: CGPoint( x: width * 0.95, y: height * 0.20 ) ) HexagonParameters.segments.forEach { segment in path.addLine( to: CGPoint( x: width * segment.line.x, y: height * segment.line.y ) ) } } .fill(Color.black) } } struct BadgeBackground_Previews: PreviewProvider { static var previews: some View { BadgeBackground() } }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Error loading Storyboard
However, in your case it happens for any new project. So read the full thread, there are other proposed solutions.
Replies
Boosts
Views
Activity
May ’21
Reply to xcode 14.5 wont run on physical device
May be you could try to unpair and pair again (start with just one device).
Replies
Boosts
Views
Activity
May ’21
Reply to 'iPhone unsupported OS version'
Can't you install Xcode 12.5 ? Xcode 12.5 includes SDKs for iOS 14.5, iPadOS 14.5, tvOS 14.5, watchOS 7.4, and macOS Big Sur 11.3. The Xcode 12.5 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.5 requires a Mac running macOS Big Sur 11 or later.
Replies
Boosts
Views
Activity
May ’21
Reply to 'iPhone unsupported OS version'
To build on iOS 14.5 device, you need Xcode 12.5, hence MacOS 11 BigSur. https://stackoverflow.com/questions/66782110/xcode-12-and-ios-14-sdk You could download through TestFlight, but that's not equivalent (notably for debug).
Replies
Boosts
Views
Activity
May ’21