Search results for

“DTiPhoneSimulatorErrorDomain Code 2”

167,613 results found

Post

Replies

Boosts

Views

Activity

Swift Tutorial: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)
I'm going through the Swift tutorial, on the Handling Error section: https://developer.apple.com/tutorials/app-dev-training/handling-errors One of the step asks you to input xcrun simctl get_app_container booted com.example.apple-samplecode.Scrumdinger data into the Terminal to get the location of the App Sandbox. When I do this, I get the following error: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn’t be completed. No such file or directory No such file or directory I've tried 2 things but neither worked: Command-Shift-K in Xcode to clean the build Erase all Content and Settings in Simulator to reset it I'm using the Xcode 14.2, running on M2 Macbook Air.
2
0
1.3k
Jan ’23
Swift Screen time Api error (family controls error code=2 )
I'm try to physical device always getting error on Error for Family Controls: Error Domain=FamilyControls.FamilyControlsError Code=2 (null) AuthorizationCenter.shared.requestAuthorization{result in switch result { case .success(): print(Allow to controle App ) break case .failure(let error): print(Error for Family Controls: (error)) } } My question is - how can I authorize my parents using Family Control API in order to use for example Device Activity framework and Managed Settings framework?
0
0
1k
Mar ’22
Working in parallel on 2 projects with Claude Code agents. Agents should be able to communicate with each other.
When working in parallel on 2 projects (i.e. a server and a client app project). The Claude Code agents in those projects should be able to communicate with each other to improve the flow of information (i.e. changes in models, DTOs). The developer should supervise the communication and can block, if necessary.
0
0
119
Mar ’26
Ipad "Learn to code 2" - graphics not rendering after latest app update
Hi,Following the update to v1.1 of Swift Playground on iOS on Nov. 17, none of the graphics are rendering in the Learn To Code 2 module. The code window shows, but the world screen that normally shows the landscape, programable characters, gems, switches, etc. remains blank.This doesn't happen in Learn To Code 1 or 3, which seem to be unaffected.I've closed all other apps, rebooted my iPad Pro but nothing is showing.Does anyone else have this issue, or have a fix?Thanks
1
0
443
Nov ’16
Widgets Code Along Part 2 - EmojiRangerWidgetEntryView doesn't display correctly
In working through the 2nd code along, I put in place the code which allows for the widget to be formatter for system medium. When I run the code all I end up with is the enlarged widget view with a completely orange background and no content. I also tried the finished final project that was provided and it resulted in the same output. Any ideas as to what might be going on with the sample? Thanks, Rob
2
0
698
Jun ’20
Report a bug on Swift Playground, "Learn to Code 2" - "Seeking Seven Gems"
Hello folks, I'd like to report a bug in Swift Playground to Apple official dev team, it's in Learn to Code 2 - Seeking Seven Gems. The puzzle map can't be loaded, please check the following screenshot, My system environment: MacOS 15.3 Swift 6.0.3 (swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)) Swift Playground 4.6.2 Xcode 16.2 Hardware: MacBook Pro/M2 Pro/32G
1
0
826
Feb ’25
How can I restrict which devices can receive the two factor authentication verification code?
I work in an office where there are multiple devices used to access the developer account.We constantly have the problem that when asked to enter the verification code we have no idea which device to look for it on. If you are luck it will appear on a device near by but we have people working from remote locations that also access the developer account so the verification code could be sent literally anywhere in the world.There must be some way we can limit the devices the code can be sent to so we know where to look for it. It would also be helpful if it would also tell you the name of the device it was sent to.Can somebody point me in the correct direction?
0
0
610
Sep ’19
Swift Playground "Learn to Code 2" Chapter "World Building" page Introduction
Hello everyone, I hope playground developers monitor this forum. In Swift Playground Learn to Code 2, Chapter World Building, the Introduction page shows an incorrect example. it instructs to use world.place(item: Item, atColumn: Int, row: Int), but when I used word.place(item: block, atColumnt: 3, row: 3), I received an error Extraneous argument label 'item' in call. Method word.place(block, atColumnt: 3, row: 3) worked fine. Other than that, it's a great tool! I'm using it to teach my daughter (Gr.8). Thanks! Alex
1
0
660
Apr ’21
IAP failed: SKErrorDomain Code=2 "Cannot connect to iTunes Store"
Hi,I am receiving the following error message whenever my users try to purchase my product (so far I haven't had a single user on iOS successfully purchase any of my IAPs): Jul 10 11:49:53 melodyyin18@gmail.com LingolandNative: WARNING IAP: Purchase purchasing Jul 10 11:49:56 melodyyin18@gmail.com LingolandNative: ERR IAP: Purchase failed: error=Error Domain=SKErrorDomain Code=2 Cannot connect to iTunes Store UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store} Jul 10 11:50:11 melodyyin18@gmail.com LingolandNative: INFO IAP: productsRequest received response!What could be causing this issue?The first thing that comes to mind is that the user is having trouble with the Internet connection, except everything else in my app that uses networking works (the app is a networked game).I've also tested with sandbox users locally, and the purchasing has worked fine.As feedback, either there needs to be a retry mechanism for connecting to the store, or the error message needs to be more des
9
0
14k
Jul ’16
clang compile with LTO - Bus error, BAD_ACCESS code=2
Since we upgraded a Mac to the latest Xcode (coming from 12.4) to 13.1 or 13.2.1 / commandline tools 13.2 we're hitting an error when linking our executable. clang: error: unable to execute command: Bus error: 10 clang: error: linker command failed due to signal (use -v to see invocation) ninja: build stopped: subcommand failed. It only happens when doing LTO builds. I disabled system hardening to be able to attach LLDB to the linker hoping to find more info on why it might crash and got a huge stack trace: * frame #0: 0x00000001058087d0 libLTO.dylib`computeKnownBitsFromOperator(llvm::Operator const*, llvm::APInt const&, llvm::KnownBits&, unsigned int, (anonymous namespace)::Query const&) + 32 frame #1: 0x00000001057f6333 libLTO.dylib`computeKnownBits(llvm::Value const*, llvm::APInt const&, llvm::KnownBits&, unsigned int, (anonymous namespace)::Query const&) + 1523 frame #2: 0x00000001057f5cc9 libLTO.dylib`computeKnownBits(llvm::Value const*, llvm::KnownBits&, unsigned int
4
0
2.5k
Dec ’21
Unable to add exclusionPaths to "Meet TextKit 2" sample code
If I set an exclusion path, e.g. in TextDocumentViewController.viewDidLoad() like: textLayoutManager.textContainer?.exclusionPaths = [bezierPath] I am getting a Unexpectedly found nil while unwrapping an Optional value crash in TextDocumentView.adjustViewportOffset() because viewportRange is nil on textViewportLayoutController. Setting an exclusion path also causes weird behavior for textLayoutManager.enumerateTextLayoutFragments() which refuses to iterate if the .ensuresLayout option is set. The problem happens in both iOS and macOS (though I only care about iOS). I'm able to get exclusionPaths to work fine if I use UITextView, but the performance is unworkable there. I also was able to set exclusionPaths in the STTextView project in GitHub, but I was unable to identify anything specific that code was doing differently. Anyone have ideas as to what else needs to happen to make exclusionPaths work?
1
0
811
Sep ’23
ios27 ARSCNViewDelegate EXC_BAD_ACCESS (code=2, address=0x16f74ffb0)
Hi, I understand Scenekit is deprecated in ios27, but expectation is that it should continue working in ios27 and not anymore maintained. With ios27 , when we attempt to set self.delegate in an ARSCNViewDelegate we receive a crash. Is there any workaround to have that fixed until we have time to move away from Scenekit? Can this be part of a fix in ios27 considering we should have sometime to migrate out production apps or that won't go through? Thank you.
2
0
3.1k
3w
Crash (EXC_BAD_ACCESS (code=2, address=0x6048a280aff8)) with OperationQueue
Hi,I'm working on a custom framework to copy files asynchronously with FileManger.I use NSOperation and NSOperationQueue like in this article.I build all my CopyOperations in a loop where I pass the srcPath, dstPath and other parameters, set the dependency to the next operation to the previous and add the operations to a CopyFilesOperationQueue which inherit from NSOperationQueue :_theCopyFilesOperationQueue = CopyFilesOperationQueue() _theCopyFilesOperationQueue?.name = exportFiles var dp: FileOperation? let fm: FileManager = FileManager.defaultfor i in 0...theTracksList.count - 1 { let theTrack: Track = theTracksList[i] let file: URL = theTrack.location! let theSourcePathStr: String = file.path let theDestinationPattern: String = _getDestinationPattern(theTrack: theTrack, fileNameType: theFileNameType) let theDestinationPathStr: String = exportTo.path + / + theDestinationPattern let theCopyFileOperation: FileOperation = FileOperation(fileManager: fm, srcPath: theSourcePathStr, dstPath: theDestinationPathStr
Topic: UI Frameworks SubTopic: AppKit Tags:
1
0
1.5k
Mar ’19
Swift Tutorial: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2)
I'm going through the Swift tutorial, on the Handling Error section: https://developer.apple.com/tutorials/app-dev-training/handling-errors One of the step asks you to input xcrun simctl get_app_container booted com.example.apple-samplecode.Scrumdinger data into the Terminal to get the location of the App Sandbox. When I do this, I get the following error: An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): The operation couldn’t be completed. No such file or directory No such file or directory I've tried 2 things but neither worked: Command-Shift-K in Xcode to clean the build Erase all Content and Settings in Simulator to reset it I'm using the Xcode 14.2, running on M2 Macbook Air.
Replies
2
Boosts
0
Views
1.3k
Activity
Jan ’23
Swift Screen time Api error (family controls error code=2 )
I'm try to physical device always getting error on Error for Family Controls: Error Domain=FamilyControls.FamilyControlsError Code=2 (null) AuthorizationCenter.shared.requestAuthorization{result in switch result { case .success(): print(Allow to controle App ) break case .failure(let error): print(Error for Family Controls: (error)) } } My question is - how can I authorize my parents using Family Control API in order to use for example Device Activity framework and Managed Settings framework?
Replies
0
Boosts
0
Views
1k
Activity
Mar ’22
Working in parallel on 2 projects with Claude Code agents. Agents should be able to communicate with each other.
When working in parallel on 2 projects (i.e. a server and a client app project). The Claude Code agents in those projects should be able to communicate with each other to improve the flow of information (i.e. changes in models, DTOs). The developer should supervise the communication and can block, if necessary.
Replies
0
Boosts
0
Views
119
Activity
Mar ’26
Ipad "Learn to code 2" - graphics not rendering after latest app update
Hi,Following the update to v1.1 of Swift Playground on iOS on Nov. 17, none of the graphics are rendering in the Learn To Code 2 module. The code window shows, but the world screen that normally shows the landscape, programable characters, gems, switches, etc. remains blank.This doesn't happen in Learn To Code 1 or 3, which seem to be unaffected.I've closed all other apps, rebooted my iPad Pro but nothing is showing.Does anyone else have this issue, or have a fix?Thanks
Replies
1
Boosts
0
Views
443
Activity
Nov ’16
iOS17 NSURLSession errors when downloading Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory
iOS17 NSURLSession errors when downloading Error Domain=NSPOSIXErrorDomain Code=2 No such file or directory
Replies
1
Boosts
0
Views
702
Activity
Dec ’23
Widgets Code Along Part 2 - EmojiRangerWidgetEntryView doesn't display correctly
In working through the 2nd code along, I put in place the code which allows for the widget to be formatter for system medium. When I run the code all I end up with is the enlarged widget view with a completely orange background and no content. I also tried the finished final project that was provided and it resulted in the same output. Any ideas as to what might be going on with the sample? Thanks, Rob
Replies
2
Boosts
0
Views
698
Activity
Jun ’20
Report a bug on Swift Playground, "Learn to Code 2" - "Seeking Seven Gems"
Hello folks, I'd like to report a bug in Swift Playground to Apple official dev team, it's in Learn to Code 2 - Seeking Seven Gems. The puzzle map can't be loaded, please check the following screenshot, My system environment: MacOS 15.3 Swift 6.0.3 (swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)) Swift Playground 4.6.2 Xcode 16.2 Hardware: MacBook Pro/M2 Pro/32G
Replies
1
Boosts
0
Views
826
Activity
Feb ’25
How can I restrict which devices can receive the two factor authentication verification code?
I work in an office where there are multiple devices used to access the developer account.We constantly have the problem that when asked to enter the verification code we have no idea which device to look for it on. If you are luck it will appear on a device near by but we have people working from remote locations that also access the developer account so the verification code could be sent literally anywhere in the world.There must be some way we can limit the devices the code can be sent to so we know where to look for it. It would also be helpful if it would also tell you the name of the device it was sent to.Can somebody point me in the correct direction?
Replies
0
Boosts
0
Views
610
Activity
Sep ’19
Swift Playground "Learn to Code 2" Chapter "World Building" page Introduction
Hello everyone, I hope playground developers monitor this forum. In Swift Playground Learn to Code 2, Chapter World Building, the Introduction page shows an incorrect example. it instructs to use world.place(item: Item, atColumn: Int, row: Int), but when I used word.place(item: block, atColumnt: 3, row: 3), I received an error Extraneous argument label 'item' in call. Method word.place(block, atColumnt: 3, row: 3) worked fine. Other than that, it's a great tool! I'm using it to teach my daughter (Gr.8). Thanks! Alex
Replies
1
Boosts
0
Views
660
Activity
Apr ’21
IAP failed: SKErrorDomain Code=2 "Cannot connect to iTunes Store"
Hi,I am receiving the following error message whenever my users try to purchase my product (so far I haven't had a single user on iOS successfully purchase any of my IAPs): Jul 10 11:49:53 melodyyin18@gmail.com LingolandNative: WARNING IAP: Purchase purchasing Jul 10 11:49:56 melodyyin18@gmail.com LingolandNative: ERR IAP: Purchase failed: error=Error Domain=SKErrorDomain Code=2 Cannot connect to iTunes Store UserInfo={NSLocalizedDescription=Cannot connect to iTunes Store} Jul 10 11:50:11 melodyyin18@gmail.com LingolandNative: INFO IAP: productsRequest received response!What could be causing this issue?The first thing that comes to mind is that the user is having trouble with the Internet connection, except everything else in my app that uses networking works (the app is a networked game).I've also tested with sandbox users locally, and the purchasing has worked fine.As feedback, either there needs to be a retry mechanism for connecting to the store, or the error message needs to be more des
Replies
9
Boosts
0
Views
14k
Activity
Jul ’16
clang compile with LTO - Bus error, BAD_ACCESS code=2
Since we upgraded a Mac to the latest Xcode (coming from 12.4) to 13.1 or 13.2.1 / commandline tools 13.2 we're hitting an error when linking our executable. clang: error: unable to execute command: Bus error: 10 clang: error: linker command failed due to signal (use -v to see invocation) ninja: build stopped: subcommand failed. It only happens when doing LTO builds. I disabled system hardening to be able to attach LLDB to the linker hoping to find more info on why it might crash and got a huge stack trace: * frame #0: 0x00000001058087d0 libLTO.dylib`computeKnownBitsFromOperator(llvm::Operator const*, llvm::APInt const&, llvm::KnownBits&, unsigned int, (anonymous namespace)::Query const&) + 32 frame #1: 0x00000001057f6333 libLTO.dylib`computeKnownBits(llvm::Value const*, llvm::APInt const&, llvm::KnownBits&, unsigned int, (anonymous namespace)::Query const&) + 1523 frame #2: 0x00000001057f5cc9 libLTO.dylib`computeKnownBits(llvm::Value const*, llvm::KnownBits&, unsigned int
Replies
4
Boosts
0
Views
2.5k
Activity
Dec ’21
Unable to add exclusionPaths to "Meet TextKit 2" sample code
If I set an exclusion path, e.g. in TextDocumentViewController.viewDidLoad() like: textLayoutManager.textContainer?.exclusionPaths = [bezierPath] I am getting a Unexpectedly found nil while unwrapping an Optional value crash in TextDocumentView.adjustViewportOffset() because viewportRange is nil on textViewportLayoutController. Setting an exclusion path also causes weird behavior for textLayoutManager.enumerateTextLayoutFragments() which refuses to iterate if the .ensuresLayout option is set. The problem happens in both iOS and macOS (though I only care about iOS). I'm able to get exclusionPaths to work fine if I use UITextView, but the performance is unworkable there. I also was able to set exclusionPaths in the STTextView project in GitHub, but I was unable to identify anything specific that code was doing differently. Anyone have ideas as to what else needs to happen to make exclusionPaths work?
Replies
1
Boosts
0
Views
811
Activity
Sep ’23
EXC_BAD_ACCESS (code=2, address=0x16a76fff0) Xcode 15.3
Hello, I created an object which is inheriting from CLLocation. The main cause is that I want to store more properties Moreover I override the init function: override init(latitude: CLLocationDegrees, longitude: CLLocationDegrees) { super.init(latitude: latitude, longitude: longitude) } The objects aren't nil? Can anyone help Greeting Fabian
Replies
4
Boosts
0
Views
1.4k
Activity
Mar ’24
ios27 ARSCNViewDelegate EXC_BAD_ACCESS (code=2, address=0x16f74ffb0)
Hi, I understand Scenekit is deprecated in ios27, but expectation is that it should continue working in ios27 and not anymore maintained. With ios27 , when we attempt to set self.delegate in an ARSCNViewDelegate we receive a crash. Is there any workaround to have that fixed until we have time to move away from Scenekit? Can this be part of a fix in ios27 considering we should have sometime to migrate out production apps or that won't go through? Thank you.
Replies
2
Boosts
0
Views
3.1k
Activity
3w
Crash (EXC_BAD_ACCESS (code=2, address=0x6048a280aff8)) with OperationQueue
Hi,I'm working on a custom framework to copy files asynchronously with FileManger.I use NSOperation and NSOperationQueue like in this article.I build all my CopyOperations in a loop where I pass the srcPath, dstPath and other parameters, set the dependency to the next operation to the previous and add the operations to a CopyFilesOperationQueue which inherit from NSOperationQueue :_theCopyFilesOperationQueue = CopyFilesOperationQueue() _theCopyFilesOperationQueue?.name = exportFiles var dp: FileOperation? let fm: FileManager = FileManager.defaultfor i in 0...theTracksList.count - 1 { let theTrack: Track = theTracksList[i] let file: URL = theTrack.location! let theSourcePathStr: String = file.path let theDestinationPattern: String = _getDestinationPattern(theTrack: theTrack, fileNameType: theFileNameType) let theDestinationPathStr: String = exportTo.path + / + theDestinationPattern let theCopyFileOperation: FileOperation = FileOperation(fileManager: fm, srcPath: theSourcePathStr, dstPath: theDestinationPathStr
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
1
Boosts
0
Views
1.5k
Activity
Mar ’19