Search results for

DTiPhoneSimulatorErrorDomain Code 2

158,458 results found

Post

Replies

Boosts

Views

Activity

Thread 1: EXC_BAD_ACCESS (code=2, address=0x10704c088)
Platforms use: Xcode 14 macOS Monterrey 12.4 react-native: 0.59.10 iOS 16.0 devices I try run App but it fail and show this error on fishhook.c file: Thread 1: EXC_BAD_ACCESS (code=2, address=0x10704c088) inside this function: static void perform_rebinding_with_section(struct rebindings_entry *rebindings, section_t *section, intptr_t slide, nlist_t *symtab, char *strtab, uint32_t *indirect_symtab) { uint32_t *indirect_symbol_indices = indirect_symtab + section->reserved1; void **indirect_symbol_bindings = (void **)((uintptr_t)slide + section->addr); for (uint i = 0; i < section->size / sizeof(void *); i++) { uint32_t symtab_index = indirect_symbol_indices[i]; if (symtab_index == INDIRECT_SYMBOL_ABS || symtab_index == INDIRECT_SYMBOL_LOCAL || symtab_index == (INDIRECT_SYMBOL_LOCAL | INDIRECT_SYMBOL_ABS)) { continue; } uint32_t strtab_offset = symtab[symtab_index].n_un.n_strx; char *symbol_name = strtab + strtab_offset; if (strnlen(symbol_name, 2) < 2) { contin
0
0
603
Oct ’22
"Error Domain=NEAgentErrorDomain Code=2" appears..
I am a novice Swift developer. Referring to the Apple developer documentation and various blogs, I have written example code for DNS Proxy in Network Extension. I inherited NEDNSProxyProvider to create a DNSProxyProvider class in the Extension. Using NEDNSProxyManager and NEDNSSettingsManager, I created a simple app that calls saveToPreferences(...) after loadFromPreferences(...). When saveToPreferences(...) is called, I can confirm that the DNS Proxy item is added to the System Preferences in the Enabled state. However, upon further inspection using console logs, it seems that the init() constructor and startProxy(...) function of DNSProxyProvider are not being called. Additionally, upon checking the console logs: NESMDNSProxySession[Primary Tunnel:MyMyService:{GUID}:(null)] in state NESMVPNSessionStateStarting: plugin NEDNSProxyPlugin(xxxxx.xxxxxx.MyMyService[inactive]) started with PID 0 error Error Domain=NEAgentErrorDomain Code=2 (null) These logs are present. Could they be rel
7
0
1.5k
Jan ’24
NSPOSIXERROR Code=2 on resume NSUrlSessionDownloadTask
Hi All,I'm working on the download infrastrture of my company's app.In the app, the user can download videos to watch offline and these are large downloads (>~1GB).Beacuse of this, we want our download experience to be as smooth as it can be.There is one scenario I'm really having trouble with:If the user kills the app while downloading, the downloads stop.On the next luanch we call getTasksWithCompletionHandler to catch all the lost download task.We create a new task from the old one's reasumeData and resume it immediately.like so:if (task.error && task.error.code == -999 && task.error.userInfo[NSURLSessionDownloadTaskResumeData] != nil) { task = [urlSession downloadTaskWithResumeData:task.error.userInfo[NSURLSessionDownloadTaskResumeData]]; [task resume]; }The new task will end with immediately with the error: NSPOSIXERROR Code=2This happend on both the simulator and on a real iphone, both running iOS 11.Please help me, I have no idea what to do.Thank you.
2
0
591
Nov ’17
Adding Card to my wallet - PKPassKitErrorDomain Code=2
Hi, When I try to add a card to wallet, I get this PKPassKitErrorDomain Code=2 error from my logs, and from the SysDiagnose, I get some more detailed error log Error details: Date: December 15, 2025 Time: 15:16 UTC Request URL: https://nc-pod9-smp-device.apple.com:443/broker/v4/devices/041B4183BA1490022104102123315131EBFE2BE7… Response: HTTP Status: 500 – Internal Server Error Time profile: 0.505452 seconds Response headers: Server: Apple Content-Type: text/html X-Content-Type-Options: nosniffStrict-Transport-Security: max-age=31536000; includeSubdomainsDate: Mon, 15 Dec 2025 15:16:59 GMT X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=blockCross-Origin-Opener-Policy: same-origin Content-Length: 170 Connection: close Response body: Anyone have faced this problem before?
0
0
20
6d
Why would our system extension fail with error NEAgentErrorDomain code 2?
Most of the time we can use our network system extension (packet tunnel provider) as desired: The main app creates a new manager, saves it, loads it again (otherwise it won't have the correct config for some reason) and then start the connection bound to that manager. But after several start/stop operations, all of a sudden it stops working. The only two error messages I see in console when trying to start a connection as described above are: neagent NEAgentSession: failed to create the delegate nesessionmanager <our-main-app-id>[476]: Tearing down XPC connection due to setup error: Error Domain=NEAgentErrorDomain Code=2 (null) And that's it. Since I have not found any reference for the NEAgentErrorDomain, I have no idea what error 2 is supposed to tell me. Nor do I have any idea why this is happening at all. This can only be fixed by running systemextensionsctl reset and re-installing the system extension. Then it will work again for some time until the problem repea
3
0
3.0k
Jul ’20
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16cd2fff8)
I fill a simple list retiring data from a json file. filtering the record. I can fill correctly the list and I can view the result. of the filtered data. If I use a button to return in the content view, I receive this error: Thread 1: EXC_BAD_ACCESS (code=2, address=0x16cd2fff8) if I use the final json file (about 45000 record). When I use a json file with 1000 item, all is ok. Help me, please
7
0
3.7k
May ’21
Swift Playgrounds - line of code not working in Learn to Code 2 - arrays
Hello, I’m new to coding and have started with swift. I‘ve got a issue with a line of code not running in, “Randomizing Lands” under the “Arrays” subtitle in Learn to Code 2. I’m trying to place water. Can anyone perhaps let me know if there is a solution to this. Line 22 & 23 is not working, I’m not sure if this could be a bug on Swift Plagrounds part because when I use “ world.removeAllBlocks(at: coordinate) in line 22, the blocks are removed and replaced with water ( the problem is when there is a item on the block like a gem or character etc., then it doesn’t work for that particular coordinate, obviously because it’s not only blocks) Please Help 🙂let allCoordinates = world.allPossibleCoordinates var heights: [Int] for i in 1 ... 20 { let localNumber = randomInt(from: 0, to: 12) heights.append(localNumber) } var index = 0 for coordinate in allCoordinates { if index == heights.count { index = 0 } var currentHeight = heights[index] if currentHeight == 0 world.place(G
2
0
2.4k
Jan ’19
Two lines of code that segfaults compiler
Using Xcode7 beta 6, this little test program:protocol StringInitializable { init?(_ v: String) } extension String : StringInitializable { }will make the compiler do this:$ swiftc test.swift ... Stack dump: 0. Program arguments: /Applications/Xcode7-beta6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file test.swift -target x86_64-apple-darwin14.5.0 -enable-objc-interop -sdk /Applications/Xcode7-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -color-diagnostics -module-name test -o /var/folders/50/br4kxvjd0t551h0fmtrzkwdw0000gn/T/test-4efedc.o 1. While emitting IR SIL function @_TTWSS4test19StringInitializableS_FS0_CuRq_S0__fMq_FSSGSqq__ for 'init' at <invalid loc> <unknown>:0: error: unable to execute command: Segmentation fault: 11 <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)As can be seen in the code, the protocol has a failable initializer and I gu
1
0
1.2k
Aug ’15
Error Domain=FamilyControls.FamilyControlsError Code=2 "(null)"
An error was reported when requesting permissions on devices with iOS 16.2 16.3. It is not an emulator. Through the log records, the following Error message appears Error Domain=FamilyControls.FamilyControlsError Code=3 (null) Error Domain=FamilyControls.FamilyControlsError Code=4 (null) Error Domain=FamilyControls.FamilyControlsError Code=5 (null) func requestScreenTime() async -> Bool { do { try await AuthorizationCenter.shared.requestAuthorization(for: .individual) return AuthorizationCenter.shared.authorizationStatus == .approved } catch { print((error)) return false } }
1
0
87
May ’25
Playground Learn to Code 2, World Creation
world.place(Portal(color: #colorLiteral(red: 1.0004385709762573, green: 0.22760793566703796, blue: 0.18670153617858887, alpha: 1.0)), at: Coordinate(column: 0, row: 0)) I get the following error from the above little piece of code : “There was a problem running this code. Check for problems …. Start over” WHY
0
0
429
Sep ’24
Learn To Code 2 - Up and Down - code issue
Hi, I'm a beginner on Playgrounds and I don't understand what is wrong with line 04.I expected to choose which character will perform the maze with right hand strategy but it looks like I failed.Can someone please explain me where is the mistake?thankswhile gemCounter < 7 { if character.isOnGem { gemGem() }else if character.!isBlockedRight { character.turnRight() character.moveForward() }else { character.moveForward() } }
3
0
353
Apr ’20