Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,616 results found

Post

Replies

Boosts

Views

Activity

How to debug watchOS 2 complication
I'm experimenting with creating a watchOS 2 complication. Although I have some simple working code, I can't seem to debug the code of the ComplicationController class. When I set a breakpoint it never hit while if I set a breakpoint in the ExtensionDelegate it does get hit when I launch the app.Any help is appreciated.
2
0
1.3k
Jun ’15
poll(2) slower than select(2)
I have a program that creates a TCP server socket and listens on it. When the program accepts a connection from a client, it calls poll(2) repeatedly to see if there is any input available, like this: for (int i = 0; i < 1000000; i++) { struct pollfd fds[] = {{ .fd = clientfd, .events = POLLIN, .revents = 0 }}; int r = poll(fds, 1, 0); if (r < 0) { perror(poll); exit(1); } } On my Intel iMac, this takes about 15 seconds. If I use select(2) instead, as follows, it takes about 550ms. for (int i = 0; i < 1000000; i++) { struct timeval timeout = { .tv_sec = 0, .tv_usec = 0 }; fd_set infds; FD_ZERO(&infds); FD_SET(clientfd, &infds); int r = select(1, &infds, 0, 0, &timeout); if (r < 0) { perror(select); exit(1); } } https://gist.github.com/xrme/cd42d3d753ac00861e439e012366f2cf is a C source file that contains a complete example. If you're inclined to take a look, please download the file from the gist and do cc poll-test.c and then ./a.out. Connect to it with nc 127.0.
2
0
362
Sep ’24
XCode Help 2
Whenever I create a segue between two view controllers, the second view controller gets gray frame around it that ruins my layout. I trying to get rid of it, but I don't know how. Please someone help me? It only happen in IB, and it's when a I make a segue through IB not code. I have a picture, but there is no image attachment or can't find it.
3
0
494
Aug ’20
Storekit 2 Error
I got this error while fetching products using storekit 2 in swiftui. 2023-05-23 12:19:51.196042+0530 SKDemo[1183:172700] [Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=500 (null) UserInfo={client-environment-type=Sandbox, storefront-country-code=AUS, NSUnderlyingError=0x2812e0210 {Error Domain=AMSErrorDomain Code=301 Invalid Status Code UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://mzstorekit-sb.itunes.apple.com/inApps/v1/history?REDACTED, AMSStatusCode=500, AMSServerPayload={ errorCode = 5000001; errorMessage = An unknown error occurred. Please try again.; okButtonString = OK; }, NSLocalizedFailureReason=The response has an invalid status code}}} 2023-05-23 12:19:58.672549+0530 SKDemo[1183:172693] [Default] Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=500 (null) UserInfo={NSUnderlyingError=0x2812d5f50 {Error Domai
1
0
1.4k
May ’23
WeatherKit WDSJWTAuthenticatorServiceListener.Errors Code=2 despite fully verified entitlement — App ID needs backend token-generation sync?
WeatherService fails on every request with: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) hourly forecast fetch failed: … Code=2 I've verified the entire setup and the error persists, which points to the App ID's WeatherKit token generation not being provisioned on Apple's backend: Team ID: 2LWCLD2636 Bundle ID: com.hoagiecorps.poppit WeatherKit capability and App Service both enabled on the App ID. com.apple.developer.weatherkit entitlement present in the signed binary and the embedded provisioning profile (verified via codesign -d --entitlements). A TestFlight build carrying the entitlement has been processed (VALID). Location authorized (When-In-Use); valid coordinates are obtained — the failure is purely the JWT auth step. Tried: device reboot, VPN off, iCloud Private Relay off, cycling the WeatherKit capability off/on plus regenerating the profile and clean rebuild, and waiting several days. Physical device, iOS 26. Could someone from the Weathe
1
0
240
Jun ’26
2 Requests for Rosetta: support BMI1/2 and F16C and support also AVX1/2 on Rosetta Linux..
Hi, REQUEST 1: seems Microsoft is ahead of Apple in X86 ARM emulation support at least in features supported.. see: https://blogs.windows.com/windows-insider/2024/11/06/announcing-windows-11-insider-preview-build-27744-canary-channel/ x64 emulated applications through Prism will now have support for additional extensions to the x86 instruction set architecture. These extensions include AVX and AVX2, as well as BMI, FMA, F16C BMI1/2 and F16C aren't yet supported by Rosetta.. would be useful for games like Alan Wake 2.. so asking for Rosetta equaling features to Prism emulator.. REQUEST 2: there is no way to currently enable AVX1/2 on Rosetta Linux.. on macOS using export ROSETTA_ADVERTISE_AVX=1 does the trick.. but not on Linux VM's.. tested setting this via: /bin/launchctl setenv ROSETTA_ADVERTISE_AVX 1 on Mac before VM launch and inside Linux VM but AVX2 isn't exposed..
3
0
2.5k
Nov ’24
Learn to Code 2 > Variables > Three Gems, Four Switches
My while loop continues execution after reaching gemsCollected = 3 if I use OR logical operator (||) and stops execution if I use AND logical operator (&&). IMHO it should be the other way around, right? var gemsCollected = 0 var switchesToggled = 0 while gemsCollected < 3 || switchesToggled < 4 { moveForward() if gemsCollected < 3 && isOnGem { collectGem() gemsCollected = gemsCollected + 1 } else if switchesToggled < 4 && isOnClosedSwitch { toggleSwitch() switchesToggled = switchesToggled + 1 } else if isBlocked && !isBlockedRight { turnRight() } else if isBlocked && !isBlockedLeft { turnLeft() } }
1
0
1.5k
Jul ’23
Two ViewController with one View
I am a view that want to present two different look while receiving different data. And I don't want to use if-else statement to handle cause it will make the code too clumsy and hard to modify. So I create two viewController to do it, but it doesn't seem to be a good way. Any suggestion with this situation? Thank you guys.
1
0
351
May ’22
Two-Factor Authentication Loop?
So I have the following devices:- MacBook (10.12 BETA 2)- iPhone (10 BETA 2)- iPad (10 BETA 2)- Apple Watch (3.0 BETA 2)Two-factor authentication is enabled for the Auto-Unlock with Watch feature.Everything was working fine. Then I've decided to login on iCloud in my work computer (MacBook, 10.11). iPhone went crazy with the iCloud security stuff, so now it seems it has remained in a mid-term state.So my iPhone is a trusted-device still, but for some reason, trusted features are disabled (Keychain, HomeKit). Trying to login on iCloud in the phone requires password AND a security code, which shouldn't be required as the phone is still a trusted iCloud device. However I can't seem to type the security code on the phone since the keyboard does not appear.Crazy scenario, I reckon, but it might happen for other users as well, so it's good to point it out.I've already filled a bug report, but this post might be helpful too.
0
0
973
Jul ’16
El capitan Beta 2
I am unable to download El Cap Beta 2, as it says my code has already been redeemed.* Updates in the App Store only shows the previous Beta 1, that wouldn't install at all (El Cap doesn't my hard disk in beta 1, this was similar in yos beta 1).* I need to do a clean install of beta 2 (as beta 1 wouldn't install, i can't simply update it) Does anyone know a way around this, some way to remove the previous purchase of beta 1, or reset my redeem code some other way?Any ideas would be awesome.
7
0
3.3k
Jun ’15
Merge Two iPhone Apps Into One Yet Two Teams
We have two iPhone/iPad apps. We most likely will merge them into one app. Let's say two teams from different companies that were working on the separate apps will work on the single merged app. From an inner-app architecture point of view and from the above multi-team context, what's a good way to merge the two apps together? (KMT, thank you for your feedback. I totally agree that the question was not clear.)
1
0
741
Aug ’16
how to have 2 functions with one button
I was wondering how i could have 2 functions work from 1 button. One would happen on the first time you click and second will happen the second time you click. in java something like this: if button pressed{ // Code if button pressed{ // Code } } or at least that's how I was taught in java. so I'm wondering how I could do that in swift. Thanks!
1
0
878
Feb ’22
Reply to Autorotation not working
I have identified a related issue. The shouldAutorotate function doesn't fire on iOS9 beta 5 when running on the iPad Air 2 128 GB.Thus far I have tested the following code on iOS9 Beta 5 on an iPhone 4S, iPhone 6, iPad 2, iPad3, and an iPad Air 2. The code executes on rotation on every device except the ipad air 2. On the the iPad Air 2 the code is completely ignored.import UIKit class ViewController: UIViewController { override func shouldAutorotate() -> Bool { print(ShouldAutorotate) return false } }
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
How to debug watchOS 2 complication
I'm experimenting with creating a watchOS 2 complication. Although I have some simple working code, I can't seem to debug the code of the ComplicationController class. When I set a breakpoint it never hit while if I set a breakpoint in the ExtensionDelegate it does get hit when I launch the app.Any help is appreciated.
Replies
2
Boosts
0
Views
1.3k
Activity
Jun ’15
poll(2) slower than select(2)
I have a program that creates a TCP server socket and listens on it. When the program accepts a connection from a client, it calls poll(2) repeatedly to see if there is any input available, like this: for (int i = 0; i < 1000000; i++) { struct pollfd fds[] = {{ .fd = clientfd, .events = POLLIN, .revents = 0 }}; int r = poll(fds, 1, 0); if (r < 0) { perror(poll); exit(1); } } On my Intel iMac, this takes about 15 seconds. If I use select(2) instead, as follows, it takes about 550ms. for (int i = 0; i < 1000000; i++) { struct timeval timeout = { .tv_sec = 0, .tv_usec = 0 }; fd_set infds; FD_ZERO(&infds); FD_SET(clientfd, &infds); int r = select(1, &infds, 0, 0, &timeout); if (r < 0) { perror(select); exit(1); } } https://gist.github.com/xrme/cd42d3d753ac00861e439e012366f2cf is a C source file that contains a complete example. If you're inclined to take a look, please download the file from the gist and do cc poll-test.c and then ./a.out. Connect to it with nc 127.0.
Replies
2
Boosts
0
Views
362
Activity
Sep ’24
Reply to AppDelegate Error
Where does the error happens exactly ?What do you mean by / 2 in the code for the AppDelegate.swift / 2 ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’16
XCode Help 2
Whenever I create a segue between two view controllers, the second view controller gets gray frame around it that ruins my layout. I trying to get rid of it, but I don't know how. Please someone help me? It only happen in IB, and it's when a I make a segue through IB not code. I have a picture, but there is no image attachment or can't find it.
Replies
3
Boosts
0
Views
494
Activity
Aug ’20
two factor
so i am trying to enroll on to the developer program - as soon as i click enroll it asks me to update my account with two factor authentication? how do i do this without ios device
Replies
2
Boosts
0
Views
760
Activity
Feb ’19
Storekit 2 Error
I got this error while fetching products using storekit 2 in swiftui. 2023-05-23 12:19:51.196042+0530 SKDemo[1183:172700] [Default] Error enumerating unfinished transactions for first transaction listener: Error Domain=ASDErrorDomain Code=500 (null) UserInfo={client-environment-type=Sandbox, storefront-country-code=AUS, NSUnderlyingError=0x2812e0210 {Error Domain=AMSErrorDomain Code=301 Invalid Status Code UserInfo={NSLocalizedDescription=Invalid Status Code, AMSURL=https://mzstorekit-sb.itunes.apple.com/inApps/v1/history?REDACTED, AMSStatusCode=500, AMSServerPayload={ errorCode = 5000001; errorMessage = An unknown error occurred. Please try again.; okButtonString = OK; }, NSLocalizedFailureReason=The response has an invalid status code}}} 2023-05-23 12:19:58.672549+0530 SKDemo[1183:172693] [Default] Error enumerating all current transactions: Error Domain=ASDErrorDomain Code=500 (null) UserInfo={NSUnderlyingError=0x2812d5f50 {Error Domai
Replies
1
Boosts
0
Views
1.4k
Activity
May ’23
WeatherKit WDSJWTAuthenticatorServiceListener.Errors Code=2 despite fully verified entitlement — App ID needs backend token-generation sync?
WeatherService fails on every request with: WeatherDaemon.WDSJWTAuthenticatorServiceListener.Errors Code=2 (null) hourly forecast fetch failed: … Code=2 I've verified the entire setup and the error persists, which points to the App ID's WeatherKit token generation not being provisioned on Apple's backend: Team ID: 2LWCLD2636 Bundle ID: com.hoagiecorps.poppit WeatherKit capability and App Service both enabled on the App ID. com.apple.developer.weatherkit entitlement present in the signed binary and the embedded provisioning profile (verified via codesign -d --entitlements). A TestFlight build carrying the entitlement has been processed (VALID). Location authorized (When-In-Use); valid coordinates are obtained — the failure is purely the JWT auth step. Tried: device reboot, VPN off, iCloud Private Relay off, cycling the WeatherKit capability off/on plus regenerating the profile and clean rebuild, and waiting several days. Physical device, iOS 26. Could someone from the Weathe
Replies
1
Boosts
0
Views
240
Activity
Jun ’26
2 Requests for Rosetta: support BMI1/2 and F16C and support also AVX1/2 on Rosetta Linux..
Hi, REQUEST 1: seems Microsoft is ahead of Apple in X86 ARM emulation support at least in features supported.. see: https://blogs.windows.com/windows-insider/2024/11/06/announcing-windows-11-insider-preview-build-27744-canary-channel/ x64 emulated applications through Prism will now have support for additional extensions to the x86 instruction set architecture. These extensions include AVX and AVX2, as well as BMI, FMA, F16C BMI1/2 and F16C aren't yet supported by Rosetta.. would be useful for games like Alan Wake 2.. so asking for Rosetta equaling features to Prism emulator.. REQUEST 2: there is no way to currently enable AVX1/2 on Rosetta Linux.. on macOS using export ROSETTA_ADVERTISE_AVX=1 does the trick.. but not on Linux VM's.. tested setting this via: /bin/launchctl setenv ROSETTA_ADVERTISE_AVX 1 on Mac before VM launch and inside Linux VM but AVX2 isn't exposed..
Replies
3
Boosts
0
Views
2.5k
Activity
Nov ’24
Learn to Code 2 > Variables > Three Gems, Four Switches
My while loop continues execution after reaching gemsCollected = 3 if I use OR logical operator (||) and stops execution if I use AND logical operator (&&). IMHO it should be the other way around, right? var gemsCollected = 0 var switchesToggled = 0 while gemsCollected < 3 || switchesToggled < 4 { moveForward() if gemsCollected < 3 && isOnGem { collectGem() gemsCollected = gemsCollected + 1 } else if switchesToggled < 4 && isOnClosedSwitch { toggleSwitch() switchesToggled = switchesToggled + 1 } else if isBlocked && !isBlockedRight { turnRight() } else if isBlocked && !isBlockedLeft { turnLeft() } }
Replies
1
Boosts
0
Views
1.5k
Activity
Jul ’23
Two ViewController with one View
I am a view that want to present two different look while receiving different data. And I don't want to use if-else statement to handle cause it will make the code too clumsy and hard to modify. So I create two viewController to do it, but it doesn't seem to be a good way. Any suggestion with this situation? Thank you guys.
Replies
1
Boosts
0
Views
351
Activity
May ’22
Two-Factor Authentication Loop?
So I have the following devices:- MacBook (10.12 BETA 2)- iPhone (10 BETA 2)- iPad (10 BETA 2)- Apple Watch (3.0 BETA 2)Two-factor authentication is enabled for the Auto-Unlock with Watch feature.Everything was working fine. Then I've decided to login on iCloud in my work computer (MacBook, 10.11). iPhone went crazy with the iCloud security stuff, so now it seems it has remained in a mid-term state.So my iPhone is a trusted-device still, but for some reason, trusted features are disabled (Keychain, HomeKit). Trying to login on iCloud in the phone requires password AND a security code, which shouldn't be required as the phone is still a trusted iCloud device. However I can't seem to type the security code on the phone since the keyboard does not appear.Crazy scenario, I reckon, but it might happen for other users as well, so it's good to point it out.I've already filled a bug report, but this post might be helpful too.
Replies
0
Boosts
0
Views
973
Activity
Jul ’16
El capitan Beta 2
I am unable to download El Cap Beta 2, as it says my code has already been redeemed.* Updates in the App Store only shows the previous Beta 1, that wouldn't install at all (El Cap doesn't my hard disk in beta 1, this was similar in yos beta 1).* I need to do a clean install of beta 2 (as beta 1 wouldn't install, i can't simply update it) Does anyone know a way around this, some way to remove the previous purchase of beta 1, or reset my redeem code some other way?Any ideas would be awesome.
Replies
7
Boosts
0
Views
3.3k
Activity
Jun ’15
Merge Two iPhone Apps Into One Yet Two Teams
We have two iPhone/iPad apps. We most likely will merge them into one app. Let's say two teams from different companies that were working on the separate apps will work on the single merged app. From an inner-app architecture point of view and from the above multi-team context, what's a good way to merge the two apps together? (KMT, thank you for your feedback. I totally agree that the question was not clear.)
Replies
1
Boosts
0
Views
741
Activity
Aug ’16
how to have 2 functions with one button
I was wondering how i could have 2 functions work from 1 button. One would happen on the first time you click and second will happen the second time you click. in java something like this: if button pressed{ // Code if button pressed{ // Code } } or at least that's how I was taught in java. so I'm wondering how I could do that in swift. Thanks!
Replies
1
Boosts
0
Views
878
Activity
Feb ’22
Reply to Autorotation not working
I have identified a related issue. The shouldAutorotate function doesn't fire on iOS9 beta 5 when running on the iPad Air 2 128 GB.Thus far I have tested the following code on iOS9 Beta 5 on an iPhone 4S, iPhone 6, iPad 2, iPad3, and an iPad Air 2. The code executes on rotation on every device except the ipad air 2. On the the iPad Air 2 the code is completely ignored.import UIKit class ViewController: UIViewController { override func shouldAutorotate() -> Bool { print(ShouldAutorotate) return false } }
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’15