Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,672 results found

Post

Replies

Boosts

Views

Activity

"UID -2" in btmdump output
Within the output of command sudo sfltool dumpbtm, in addition to records for UID 0/501/502/..., at the top of the output, there are also records for UID -2 listed. ======================== Records for UID -2 : FFFFEEEE-DDDD-CCCC-BBBB-AAAAFFFFFFFE ======================== ServiceManagement migrated: true SharedFileList migrated: false LaunchServices registered: false Items: #1: UUID: FC60A3EA-E4B0-4D8C-BA07-1C6E2DF3AA52 Name: (null) Developer Name: (null) Type: developer (0x20) Flags: [ ] (0) Disposition: [disabled, allowed, visible, not notified] (0x2) Identifier: Unknown Developer URL: (null) Generation: 0 Embedded Item Identifiers: #1: 16.com.microsoft.teams.TeamsUpdaterDaemon But a uid with -2 should be invalid, and the guid FFFFEEEE-DDDD-CCCC-BBBB-AAAAFFFFFFFE followed looks also strange.
2
0
596
Nov ’24
Rounding of floats to 2 decimals
Hi guys, I'm a complete noob when it comes to Swift but I would appreciate any help.The input value is set to be a float, but when displaying the calc results, I need it to be decimal style AND rounded up to the nearest 0.01.It currently rounds off to the nearest 3 decimals, but I need it to be two decimals. My code currently:func roundUp(number: Float, toNearest: Float) -> Float { return ceil(number / toNearest) * toNearest }let income = grossin - LocalGrossIncomeArray[5] + IntrestSAArray[3] - LocalGrossIncomeArray[9] - LocalGrossIncomeArray[8]roundUp(income, toNearest: 0.1) print(Income Round up value = (income))roundUp(grossin, toNearest: 0.1)print(grossin Round up value = (grossin))let numberFormatterIncome = NSNumberFormatter() numberFormatterIncome.numberStyle = .DecimalStyle IncomeLbl.text = R IncomeLbl.text = IncomeLbl.text! + numberFormatterIncome.stringFromNumber(income)!let numberFormatter = NSNumberFormatter() numberFormatter.numberStyle = .DecimalStyleGrossIncome.text = R Gr
1
0
6.3k
Sep ’16
Xcode 14.0 - Code Tips for Code Editor if Code Blocks
When you just start Xcode and open the project, editing the code and entering if will prompt the normal shortcut button for if code block generation; However, if you enter if again, the prompt will no longer be displayed; Unless you restart Xcode, it will only take effect for the first time. IF-ELSE prompts are normal. The above functions were normal before Xcode 13.4.1.
1
0
840
Sep ’22
Reply to array remove
The code editor invoked with `<>` sometimes becomes an ugly editor with two insertion-point cursors and actual insersion point unpredictable...When I use pasting in the code editor, I only use codes copied from Xcode editor.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
Defining two XPC services in a single System Extension
I currently have two separate system extensions that I have to launch. One is a Content Filter system extension and the other is an Endpoint Security system extension. Both define their own separate XPC services, The Endpoint Security system extension defines it through NSEndpointSecurityMachServiceName and the Content Filter system extension through NetworkExtension -> NEMachServiceName. Due to the complicated process of having the user approve two extensions and remove two extensions on uninstall, I'm venturing down the path of combining the two into a single extension. In the interest of reducing the amount of code changes, I'm interested in keeping two XPC services in the one system extension. However, when I combine the code and then the plists to define both XPC services, I fail to create the XPC listener for the Endpoint Security mach service. Is what I'm doing possible? Two XPC services in a single extension? I'm not sure if th
8
0
1.5k
Sep ’20
Reply to Is it recommended to update to swift 2.0 to support ios 9 on our app?
Bear in mind if you are using any third party code/libraries, they will have to be Swift 2 compatible as well, as you cannot mix Swift 1.2 and 2 in the same project. So I would check those first.I just completed upgrading a project from 1.2 to 2 and it was a bear, I had hundreds of errors and it took me the better part of a day to get it working again (even after Convert > To Latest Swift Syntax). But I'm glad I did it, now all my code is compatible again and I can use all the Swift 2 features like guard, try, etc. I think Swift 2 is going to be the last major project-breaking update for a while, probably until WWDC next year and even that will probably be more minor changes and additions.
Topic: Programming Languages SubTopic: Swift Tags:
Oct ’15
StoreKit 2 Transaction.currentEntitlements questions
Hi, I'm starting using StoreKit 2 and I have some questions regarding transactions. To check which non-consumable in-app purchases the user has purchased, immediately after starting the app I look at Transaction.currentEntitlements. That's working fine, but I have some questions about it. Question 1: What happens if the user is not connected to the internet? Will Transaction.currentEntitlements still return data? Question 2: What happens if the user sign out from the AppStore? Will Transaction.currentEntitlements be empty? Question 3: What happens if the user sign in AppStore with different credentials? Transaction.currentEntitlements will return the transaction of the new AppStore user? Thank you
0
0
953
May ’22
Reply to Python app keeps failing notarytool
Update: the notarization errors are a little less in terms of amount... notarytool log : severity: error, code: null, path: XYZ 2 OSC.zip/XYZ 2 OSC.app/Contents/MacOS/XYZ 2 OSC, message: The signature of the binary is invalid., docUrl: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735, architecture: x86_64 (exact same message for arm64) severity: error, code: null, path: XYZ 2 OSC.zip/XYZ 2 OSC.app/Contents/Frameworks/Python.framework/Python, message: The signature of the binary is invalid., docUrl: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735, architecture: x86_64 (exact same message for arm64)
Topic: Code Signing SubTopic: Notarization Tags:
May ’24
two factor / 2-factor authentication field missing on App Store and disable option missing under 'manage my ID'
Since updating to iOS beta 3 and enabling 2 factor authentication I've been royally screwed:The App Store doesn't have a field to enter the second code, which mean, for instance, I can no longer even download the current version of Xcode, becaue the app store tries to anthenticate my Apple ID and when the phone send me the second code, there's no field to imput it in the App Store.It also turns out the version of the 'Manage my Apple ID' website I am being loged into is not the usual one. It's a 'beta' version of maninging your Apple ID and among other things, surprise, it doesn't have an option to turn off 2 factor authentication.Has anyone ran into this issue?
6
0
788
Jul ’15
Beta 2 and file sharing?
After installing beta 2 my fileshares no longer work. Specificaly, the remote computers can’t authenticate. Can anyone else confirm this? This effects time machine shares as well.
Replies
4
Boosts
0
Views
964
Activity
Jun ’19
merge two apps in a single app
I have two different apps and would like two merge them into a single app
Replies
1
Boosts
0
Views
622
Activity
Mar ’23
"UID -2" in btmdump output
Within the output of command sudo sfltool dumpbtm, in addition to records for UID 0/501/502/..., at the top of the output, there are also records for UID -2 listed. ======================== Records for UID -2 : FFFFEEEE-DDDD-CCCC-BBBB-AAAAFFFFFFFE ======================== ServiceManagement migrated: true SharedFileList migrated: false LaunchServices registered: false Items: #1: UUID: FC60A3EA-E4B0-4D8C-BA07-1C6E2DF3AA52 Name: (null) Developer Name: (null) Type: developer (0x20) Flags: [ ] (0) Disposition: [disabled, allowed, visible, not notified] (0x2) Identifier: Unknown Developer URL: (null) Generation: 0 Embedded Item Identifiers: #1: 16.com.microsoft.teams.TeamsUpdaterDaemon But a uid with -2 should be invalid, and the guid FFFFEEEE-DDDD-CCCC-BBBB-AAAAFFFFFFFE followed looks also strange.
Replies
2
Boosts
0
Views
596
Activity
Nov ’24
code
I am a developer, please send me the authentication code!
Replies
0
Boosts
0
Views
350
Activity
Oct ’24
Rounding of floats to 2 decimals
Hi guys, I'm a complete noob when it comes to Swift but I would appreciate any help.The input value is set to be a float, but when displaying the calc results, I need it to be decimal style AND rounded up to the nearest 0.01.It currently rounds off to the nearest 3 decimals, but I need it to be two decimals. My code currently:func roundUp(number: Float, toNearest: Float) -> Float { return ceil(number / toNearest) * toNearest }let income = grossin - LocalGrossIncomeArray[5] + IntrestSAArray[3] - LocalGrossIncomeArray[9] - LocalGrossIncomeArray[8]roundUp(income, toNearest: 0.1) print(Income Round up value = (income))roundUp(grossin, toNearest: 0.1)print(grossin Round up value = (grossin))let numberFormatterIncome = NSNumberFormatter() numberFormatterIncome.numberStyle = .DecimalStyle IncomeLbl.text = R IncomeLbl.text = IncomeLbl.text! + numberFormatterIncome.stringFromNumber(income)!let numberFormatter = NSNumberFormatter() numberFormatter.numberStyle = .DecimalStyleGrossIncome.text = R Gr
Replies
1
Boosts
0
Views
6.3k
Activity
Sep ’16
Xcode 14.0 - Code Tips for Code Editor if Code Blocks
When you just start Xcode and open the project, editing the code and entering if will prompt the normal shortcut button for if code block generation; However, if you enter if again, the prompt will no longer be displayed; Unless you restart Xcode, it will only take effect for the first time. IF-ELSE prompts are normal. The above functions were normal before Xcode 13.4.1.
Replies
1
Boosts
0
Views
840
Activity
Sep ’22
Reply to array remove
The code editor invoked with `<>` sometimes becomes an ugly editor with two insertion-point cursors and actual insersion point unpredictable...When I use pasting in the code editor, I only use codes copied from Xcode editor.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’15
Defining two XPC services in a single System Extension
I currently have two separate system extensions that I have to launch. One is a Content Filter system extension and the other is an Endpoint Security system extension. Both define their own separate XPC services, The Endpoint Security system extension defines it through NSEndpointSecurityMachServiceName and the Content Filter system extension through NetworkExtension -> NEMachServiceName. Due to the complicated process of having the user approve two extensions and remove two extensions on uninstall, I'm venturing down the path of combining the two into a single extension. In the interest of reducing the amount of code changes, I'm interested in keeping two XPC services in the one system extension. However, when I combine the code and then the plists to define both XPC services, I fail to create the XPC listener for the Endpoint Security mach service. Is what I'm doing possible? Two XPC services in a single extension? I'm not sure if th
Replies
8
Boosts
0
Views
1.5k
Activity
Sep ’20
Reply to Is it recommended to update to swift 2.0 to support ios 9 on our app?
Bear in mind if you are using any third party code/libraries, they will have to be Swift 2 compatible as well, as you cannot mix Swift 1.2 and 2 in the same project. So I would check those first.I just completed upgrading a project from 1.2 to 2 and it was a bear, I had hundreds of errors and it took me the better part of a day to get it working again (even after Convert > To Latest Swift Syntax). But I'm glad I did it, now all my code is compatible again and I can use all the Swift 2 features like guard, try, etc. I think Swift 2 is going to be the last major project-breaking update for a while, probably until WWDC next year and even that will probably be more minor changes and additions.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Oct ’15
Reply to Auto-renewable subscriptions does not work in production
I managed to solve the problem, there were two changes, one in the code and another in the Tax Forms information (it was approved in Brazil and missing in the USA). So I don't know which two were the problem, but apparently it was in the Tax Forms.
Topic: App & System Services SubTopic: StoreKit Tags:
Replies
Boosts
Views
Activity
Apr ’25
StoreKit 2 Transaction.currentEntitlements questions
Hi, I'm starting using StoreKit 2 and I have some questions regarding transactions. To check which non-consumable in-app purchases the user has purchased, immediately after starting the app I look at Transaction.currentEntitlements. That's working fine, but I have some questions about it. Question 1: What happens if the user is not connected to the internet? Will Transaction.currentEntitlements still return data? Question 2: What happens if the user sign out from the AppStore? Will Transaction.currentEntitlements be empty? Question 3: What happens if the user sign in AppStore with different credentials? Transaction.currentEntitlements will return the transaction of the new AppStore user? Thank you
Replies
0
Boosts
0
Views
953
Activity
May ’22
iOS 9 beta 2
Any idea when iOS 9 beta 2 comes out... And if it will contain a new music app...or fix the problem with email crashes as well as 3rd party apps?
Replies
1
Boosts
0
Views
388
Activity
Jul ’15
WWDC 2018 Sample Code
So, whereabouts are all the sample code shown at the WWDC 2018. I have just seen the ARKit 2 presentation but I have no idea where to find the sample code they mentioned... Thanks 😊
Replies
5
Boosts
0
Views
13k
Activity
Jun ’18
Reply to Python app keeps failing notarytool
Update: the notarization errors are a little less in terms of amount... notarytool log : severity: error, code: null, path: XYZ 2 OSC.zip/XYZ 2 OSC.app/Contents/MacOS/XYZ 2 OSC, message: The signature of the binary is invalid., docUrl: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735, architecture: x86_64 (exact same message for arm64) severity: error, code: null, path: XYZ 2 OSC.zip/XYZ 2 OSC.app/Contents/Frameworks/Python.framework/Python, message: The signature of the binary is invalid., docUrl: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735, architecture: x86_64 (exact same message for arm64)
Topic: Code Signing SubTopic: Notarization Tags:
Replies
Boosts
Views
Activity
May ’24
two factor / 2-factor authentication field missing on App Store and disable option missing under 'manage my ID'
Since updating to iOS beta 3 and enabling 2 factor authentication I've been royally screwed:The App Store doesn't have a field to enter the second code, which mean, for instance, I can no longer even download the current version of Xcode, becaue the app store tries to anthenticate my Apple ID and when the phone send me the second code, there's no field to imput it in the App Store.It also turns out the version of the 'Manage my Apple ID' website I am being loged into is not the usual one. It's a 'beta' version of maninging your Apple ID and among other things, surprise, it doesn't have an option to turn off 2 factor authentication.Has anyone ran into this issue?
Replies
6
Boosts
0
Views
788
Activity
Jul ’15