Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,615 results found

Post

Replies

Boosts

Views

Activity

Please Help: Thread 1: EXC_BAD_ACCESS (code=2, address=0x30ecb2ff8)
I have been trying to figure this out for like 5 hours, and I can't seem to see what its happening. My app is trying to get users signIn with using Google or Apple methods. Once they finish the SignUp with any provider, It should take them to another screen (OnboardingViewPart2) to finish the profile setup. However, the issue is that when I finish entering my email on the Google SignUp, the screen closes and the app get stuck for like 10 secs and throws the Bad Access error. My debug takes me that there is something going on with AuthService, but I can't figure out what. Firebase recognizes that the method was used, but doesn't create any Collections or Documents. Please Help :) ContentView.swift OnboardingView.swift AuthService.swift OnboardingViewPart2.swift SignInWithGoogle.swift
3
0
3.2k
Nov ’21
Reply to Xcode 8 macOS Mojave
You'd better know one thing.Swift 2 to 3 migrator works better on Swift 2 code best fit for Swift 2.For example, old Swift 2.2 compiler suggests you to use `#selector` than using Selector(...). If your Swift 2 code is already fit for such suggestions, Swift 2 to 3 migrator generates better result. If you can run Xcode 7.3.1 or 8.2.1, you should better refine your code as best fit for Swift 2.
Jul ’18
Airplay 2
Haven't been able to test this yet, but does multi room support with Airplay 2 work on two apple TVs running tvOS 11.By this I mean can you use Airplay 2 to play a song on one apple tv and a different song on another?Thanks
0
0
608
Jun ’17
Equatable with two two-dimension array
In Pure Swift environment (no briding to NSArray)Problem: [[1]]==[[1]] //false or ([[1]] as Array)==([[1]] as Array) //false This problem only happens in pure Swift environment.Though [1] == [1], any array of integers is not marked equatable. Programmer cannot mark [Int], [String], …, etc. as Equatable protocol.Thus two [[Int]] cannot be compared using “==“.Solution 1: extension SequenceType: Equatable where Generator.Element: Equatable { }This gramma should be allowed in newer version of Swift.This means a SequenceType with Equatable elements can be marked Equatable.Solution 2:You can make a new mechanism in Swift that automatically binds “Equatable” to any generic type has “==“ operator defined.For example, in Swift Standard Swift Library, you have defined==<T: Equatable>(lhs:[T], rhs:[T])->BoolThus, the special generic type [T] where T:Equatableshould be automatically marked as “Equatable.
2
0
1.2k
Jun ’15
Reply to ForEach and HStack
The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’21
iMessage has merged 2 conversations of 2 different contacts
Hi all,I've 2 separate conversations with 2 different contacts (not the same phone number, nothing in commun).On my MacBook (High Sierra) everything works fine.But on my iPhone X running iOS 12 beta 3 (since beta 2 I've this bug), these 2 conversations are merged.When I write to one or another of these 2 contacts, it displays the 2 conversations in one screen. It merges them.When I try to create a new message, when I enter one of the 2 contacts, I don't know who receive the message, it's not always the same one that receive the message.That's really annoying.Does anyone have this issue too?I filled a bug reporter for that.Regards,Alexandre
23
0
52k
Jul ’18
Two problems in the program compilation of the new version of xcode (the target code is the content filter of the network extension)
I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors: [Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows. [default] CGSWindowShmemCreateWithPort failed on port 0 For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey() and window.orderFrontRegardless(), but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice? Xcode:Version 14.3.1 (14E300c)
1
0
1.1k
Aug ’23
iHate Swift 2
Am I the only one who hates the big changes Apple makes this year? Why can't they make just small changes in Swift???? It's not hard to convert all my Code to Swift 2. It is IMPOSSIBLE. I get 9 errors, even if I could fix them and press the build and run Button I get 20 new errors. Every time. And most of them do really not make any sense. I will never ever switch to Swift 2. And if this means I can't build new Apps one day, that's ok. Even switching to Android is still better than switching from Swift 1 to Swift 2. I will not learn a completely new programming language every year. Because that's what Swift 2 is. Last year it was Swift. Now it's Swift 2. And next year? Will I have to learn Swift 3 which will also be a completely new language? No, thanks.
22
0
3.4k
Aug ’15
Reply to How to create a button in Preferences
What do you mean by pages (I have two pages) ? I have two View Controllers in storyboard and two files for the code: ViewController.swift and Preferences.swift. They are connected in the Identity inspector. Please show code that will be easier to explain. In a simplified version, there is no code yet. I just put a button on the View Controller - Preferences of the Storyboard
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’20
Two Bugs
1. Audio randomly cutting out on this new Beta 3 Build. (reported)2. Cable Test hangs and does not complete on this new Beta 3 build (reported).Anyone else experiencing these two?
12
0
3.0k
Jul ’18
Can you publish 2 separate apps for 2 languages?
Hi, we are planing to publish an education app that comes in 2 languages, german and english. The plan was to publish 2 apps, each for each language and people can chose whichone to get. We did not want to include both languages in 1 package as the app is very heavy on videos and including both languages would be too big. If possible, we would like the keep the same App name but maybe adjust the icon to distinguish between german and english, but I would like to know what would be the recommended way to go about this? Again, having both languages inside the app is not really possible, alteast not without a big rework. Thanks!
3
0
855
Mar ’23
Please Help: Thread 1: EXC_BAD_ACCESS (code=2, address=0x30ecb2ff8)
I have been trying to figure this out for like 5 hours, and I can't seem to see what its happening. My app is trying to get users signIn with using Google or Apple methods. Once they finish the SignUp with any provider, It should take them to another screen (OnboardingViewPart2) to finish the profile setup. However, the issue is that when I finish entering my email on the Google SignUp, the screen closes and the app get stuck for like 10 secs and throws the Bad Access error. My debug takes me that there is something going on with AuthService, but I can't figure out what. Firebase recognizes that the method was used, but doesn't create any Collections or Documents. Please Help :) ContentView.swift OnboardingView.swift AuthService.swift OnboardingViewPart2.swift SignInWithGoogle.swift
Replies
3
Boosts
0
Views
3.2k
Activity
Nov ’21
Reply to Xcode 8 macOS Mojave
You'd better know one thing.Swift 2 to 3 migrator works better on Swift 2 code best fit for Swift 2.For example, old Swift 2.2 compiler suggests you to use `#selector` than using Selector(...). If your Swift 2 code is already fit for such suggestions, Swift 2 to 3 migrator generates better result. If you can run Xcode 7.3.1 or 8.2.1, you should better refine your code as best fit for Swift 2.
Replies
Boosts
Views
Activity
Jul ’18
Airplay 2
Haven't been able to test this yet, but does multi room support with Airplay 2 work on two apple TVs running tvOS 11.By this I mean can you use Airplay 2 to play a song on one apple tv and a different song on another?Thanks
Replies
0
Boosts
0
Views
608
Activity
Jun ’17
Equatable with two two-dimension array
In Pure Swift environment (no briding to NSArray)Problem: [[1]]==[[1]] //false or ([[1]] as Array)==([[1]] as Array) //false This problem only happens in pure Swift environment.Though [1] == [1], any array of integers is not marked equatable. Programmer cannot mark [Int], [String], …, etc. as Equatable protocol.Thus two [[Int]] cannot be compared using “==“.Solution 1: extension SequenceType: Equatable where Generator.Element: Equatable { }This gramma should be allowed in newer version of Swift.This means a SequenceType with Equatable elements can be marked Equatable.Solution 2:You can make a new mechanism in Swift that automatically binds “Equatable” to any generic type has “==“ operator defined.For example, in Swift Standard Swift Library, you have defined==<T: Equatable>(lhs:[T], rhs:[T])->BoolThus, the special generic type [T] where T:Equatableshould be automatically marked as “Equatable.
Replies
2
Boosts
0
Views
1.2k
Activity
Jun ’15
Reply to ForEach and HStack
The getValue function returns two different types in the two classes, Thanks for showing your code. And your code revealed that if you define a combined entity, your code all things would be solved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’21
iMessage has merged 2 conversations of 2 different contacts
Hi all,I've 2 separate conversations with 2 different contacts (not the same phone number, nothing in commun).On my MacBook (High Sierra) everything works fine.But on my iPhone X running iOS 12 beta 3 (since beta 2 I've this bug), these 2 conversations are merged.When I write to one or another of these 2 contacts, it displays the 2 conversations in one screen. It merges them.When I try to create a new message, when I enter one of the 2 contacts, I don't know who receive the message, it's not always the same one that receive the message.That's really annoying.Does anyone have this issue too?I filled a bug reporter for that.Regards,Alexandre
Replies
23
Boosts
0
Views
52k
Activity
Jul ’18
Two problems in the program compilation of the new version of xcode (the target code is the content filter of the network extension)
I'm trying to debug the official network extension sample code simplefirewall. Although it has been able to run normally and pops up user pop-up windows for the specified filter conditions, there are still two warnings and errors: [Window] Warning: Window NSWindow 0x1007315f0 ordered front from a non-active application and may order beneath the active application's windows. [default] CGSWindowShmemCreateWithPort failed on port 0 For the first warning, I followed the method given in https://developer.apple.com/forums/thread/729496 and added windo.makeKey() and window.orderFrontRegardless(), but this warning didn't go away. As for the second default, I haven't been able to find the corresponding root cause and solution of the problem. I would like to ask, can anyone give me some advice? Xcode:Version 14.3.1 (14E300c)
Replies
1
Boosts
0
Views
1.1k
Activity
Aug ’23
NSIndexPath unavailable in watchOS 2?
I'm migrating my WatchKit extension code from watchOS 1 to watchOS 2. I encounter these errors about NSIndexPath:No known class method for selector 'indexPathForRow:inSection:'Property 'row' not found on object of type 'NSIndexPath *'Does it mean I can not use NSIndexPath in watchOS 2 code?
Replies
3
Boosts
0
Views
695
Activity
Jul ’15
Airplay 2
Does the current beta support Airplay 2 and is it backwards compatible with Airplay?Does it require new Airplay 2 devices? If not, how to access multiroom features?Thanks!
Replies
2
Boosts
0
Views
2.3k
Activity
Jun ’17
iHate Swift 2
Am I the only one who hates the big changes Apple makes this year? Why can't they make just small changes in Swift???? It's not hard to convert all my Code to Swift 2. It is IMPOSSIBLE. I get 9 errors, even if I could fix them and press the build and run Button I get 20 new errors. Every time. And most of them do really not make any sense. I will never ever switch to Swift 2. And if this means I can't build new Apps one day, that's ok. Even switching to Android is still better than switching from Swift 1 to Swift 2. I will not learn a completely new programming language every year. Because that's what Swift 2 is. Last year it was Swift. Now it's Swift 2. And next year? Will I have to learn Swift 3 which will also be a completely new language? No, thanks.
Replies
22
Boosts
0
Views
3.4k
Activity
Aug ’15
Any iPad 2 iOS 9 Beta 2 users?
Any iPad 2 iOS 9 Beta 2 users?Do I dare try it? Could it be any worse then 8.3? (Sluggish!)
Replies
4
Boosts
0
Views
977
Activity
Jun ’15
Core Graphics on WatchOS 2?
Looking for sample code for using Core Graphics on a WatchOS 2?ThanksGreg
Replies
0
Boosts
0
Views
391
Activity
Jul ’15
Reply to How to create a button in Preferences
What do you mean by pages (I have two pages) ? I have two View Controllers in storyboard and two files for the code: ViewController.swift and Preferences.swift. They are connected in the Identity inspector. Please show code that will be easier to explain. In a simplified version, there is no code yet. I just put a button on the View Controller - Preferences of the Storyboard
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’20
Two Bugs
1. Audio randomly cutting out on this new Beta 3 Build. (reported)2. Cable Test hangs and does not complete on this new Beta 3 build (reported).Anyone else experiencing these two?
Replies
12
Boosts
0
Views
3.0k
Activity
Jul ’18
Can you publish 2 separate apps for 2 languages?
Hi, we are planing to publish an education app that comes in 2 languages, german and english. The plan was to publish 2 apps, each for each language and people can chose whichone to get. We did not want to include both languages in 1 package as the app is very heavy on videos and including both languages would be too big. If possible, we would like the keep the same App name but maybe adjust the icon to distinguish between german and english, but I would like to know what would be the recommended way to go about this? Again, having both languages inside the app is not really possible, alteast not without a big rework. Thanks!
Replies
3
Boosts
0
Views
855
Activity
Mar ’23