Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

162,347 results found

Post

Replies

Boosts

Views

Activity

Maintain 2 Versions for same APP
Hello all, I have two versions of the same app (SwiftUI) , one of which is free (ad-supported) and the other is not. My two current XCode projects has identical code, but the free one has AdMob code inside. The code in my current two projects in XCode is same, however the free one includes AdMob. I don't like this method because I have to copy and paste changes I make to one into the other. Is it possible to generate a version for the Apple Store with only one project and omit some code? Or I'll have to proceed as I am currently, using the same code for two projects. Thanks a lot!
0
0
260
May ’23
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
335
Sep ’24
Xcode 10 beta 2 not working on two items
Hi All,I have been experiencing the following issue on XCode 10.0 beta 1) VoIP Push Registration is not working, same code working on XCode 9.3, but does not work Xcode 10.0 beta, it will not trigger VoiP token.2) Notification Extension not working properly, With Customized Notifiction UI, it can launch extension notification UI, but all the action does not work, press action button does not call delegate.Is there anyone has the same issue?Thanks,
0
0
1.9k
Jun ’18
Is StoreKit 2 for Swift only?
My app is a hybrid of ObjC and Swift as I have been converting it from ObjC to Swift a bit at a time. I need to integrate In-App Purchases now and I'd like to use StoreKit 2. However, when I have one of my Swift classes return a Product object, my ObjC classes don't seem to have access to the Product type and referring to it as an SKProduct type doesn't work either. Is it possible to interact with the Store Kit 2 APIs from ObjC code? Or am I going to need to isolate all of the StoreKit2 stuff in my Swift code and communicate differently when it's time to communicate with my old ObjC code? Thanks, Kenny
1
0
2.2k
Nov ’22
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
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
483
Aug ’20
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.1k
Nov ’24
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
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
345
May ’22
Maintain 2 Versions for same APP
Hello all, I have two versions of the same app (SwiftUI) , one of which is free (ad-supported) and the other is not. My two current XCode projects has identical code, but the free one has AdMob code inside. The code in my current two projects in XCode is same, however the free one includes AdMob. I don't like this method because I have to copy and paste changes I make to one into the other. Is it possible to generate a version for the Apple Store with only one project and omit some code? Or I'll have to proceed as I am currently, using the same code for two projects. Thanks a lot!
Replies
0
Boosts
0
Views
260
Activity
May ’23
How to join two projects together
I wanna join two projects together as one project. Please help me on how to link it together and all. Developing with Swift Code.
Replies
1
Boosts
0
Views
272
Activity
Jan ’17
2 LightNodes
My problem is that I have 2 LightNodes and both of them cast a shadow. But the Light effect doesn't work if one is in the Shadow of the other. How can I fix that issue?
Replies
3
Boosts
0
Views
926
Activity
Mar ’18
How to fix this warning in swift 2 ?
Hi, after i installed swift 2 a waring appeared : Variable 'self' was written to, but never readin my code : [weak self] url in
Replies
1
Boosts
0
Views
2.6k
Activity
Oct ’15
Installed Watch OS 2 beta 2!
So it appears it worked now.When it was first released, I managed to download a configuration file that was dated June 23 and not June 7 like the ones after they pulled it.I just ran everything and my watch is now updating to Beta 2.
Replies
4
Boosts
0
Views
651
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
335
Activity
Sep ’24
WatchOS 2 Developer Preview 2 now available OTA
WatchOS 2 Developer Preview 2 now available OTA
Replies
5
Boosts
0
Views
1.2k
Activity
Jun ’15
Xcode 10 beta 2 not working on two items
Hi All,I have been experiencing the following issue on XCode 10.0 beta 1) VoIP Push Registration is not working, same code working on XCode 9.3, but does not work Xcode 10.0 beta, it will not trigger VoiP token.2) Notification Extension not working properly, With Customized Notifiction UI, it can launch extension notification UI, but all the action does not work, press action button does not call delegate.Is there anyone has the same issue?Thanks,
Replies
0
Boosts
0
Views
1.9k
Activity
Jun ’18
Is StoreKit 2 for Swift only?
My app is a hybrid of ObjC and Swift as I have been converting it from ObjC to Swift a bit at a time. I need to integrate In-App Purchases now and I'd like to use StoreKit 2. However, when I have one of my Swift classes return a Product object, my ObjC classes don't seem to have access to the Product type and referring to it as an SKProduct type doesn't work either. Is it possible to interact with the Store Kit 2 APIs from ObjC code? Or am I going to need to isolate all of the StoreKit2 stuff in my Swift code and communicate differently when it's time to communicate with my old ObjC code? Thanks, Kenny
Replies
1
Boosts
0
Views
2.2k
Activity
Nov ’22
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
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
483
Activity
Aug ’20
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.1k
Activity
Nov ’24
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
751
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
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
345
Activity
May ’22