This is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and join us in fostering a supportive community.

All subtopics
Posts under Community topic

Post

Replies

Boosts

Views

Activity

Stuck using variable in the tex statement
I have two simple tests initially triggered by a title of a game setting: "Highest score Wins" or rule.hasSuffix("wins."). The code in both cases looks for the highest score and in the latter case checks to see if a target score has been achieved. This work fine. But when I display the final results, the first works fine and the latter fails to display the name; defaulting to the No One Wins - which is incorrect. The relevant pieces of the code are: case rule == "Highest score Wins": // Find the highest score let maxScore = scores.max(by: { $0.1 < $1.1 })?.1 ?? 0 let topScorers = scores.filter { $0.1 == maxScore } gameIsDraw = topScorers.count > 1 winner = topScorers.count == 1 ? topScorers.first?.0 : nil // This work and will display the winner name correctly - see below case rule.hasSuffix("wins."): // "Player to reach X wins." let topScorers = scores.filter { $0.1 >= target } if !topScorers.isEmpty { let maxScore = scores.max(by: { $0.1 < $1.1 })?.1 ?? 0 let topScorers = scores.filter { $0.1 == maxScore } gameIsDraw = topScorers.count > 1 winner = topScorers.count == 1 ? topScorers.first?.0 : nil // This works but does not display the name //This is the section that displays the names (winner) if gameIsDraw { Text("The Game is a Draw") .font(.largeTitle) .bold() .foregroundColor(.orange) } else { Text("Game Over!") .font(.largeTitle) .bold() Text("\(winner?.playername ?? "No One") Wins!") .font(.title) .foregroundColor(.green) } I have tried everything, but am losing the will to live
10
0
457
Dec ’24
How to solve 0x7fc700000000 is not in any region?
I have been trying to open Minecraft on my mac, however my java keeps quitting expectedly. I am not sure how to solve that considering I've tried deleting and reinstalling both java and minecraft a few times. Translated Report (Full Report Below) Process: java [896] Path: /Users/USER/Library/Application Support/minecraft/*/jre.bundle/Contents/Home/bin/java Identifier: java Version: ??? Code Type: X86-64 (Native) Parent Process: launcher [836] Responsible: launcher [836] User ID: 501 Date/Time: 2024-12-02 22:17:03.1605 +0000 OS Version: macOS 12.7.6 (21H1320) Report Version: 12 Bridge OS Version: 3.0 (14Y910) Anonymous UUID: 63D094BB-378F-96E3-C961-AD71A2DDD236 Time Awake Since Boot: 370 seconds System Integrity Protection: enabled Crashed Thread: 0 Java: Render thread Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x00007fc700000000 Exception Codes: 0x0000000000000001, 0x00007fc700000000 Exception Note: EXC_CORPSE_NOTIFY VM Region Info: 0x7fc700000000 is not in any region. Bytes after previous region: 17347201724417 Bytes before following region: 2347761664 REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL Stack 70000a243000-70000a341000 [ 1016K] rw-/rwx SM=COW thread 45 ---> GAP OF 0xfc781bbf000 BYTES MALLOC_TINY 7fc78bf00000-7fc78c000000 [ 1024K] rw-/rwx SM=PRV Application Specific Information: abort() called
1
0
307
Dec ’24
Screen time
My screen time report says that I’m on Google an average of 24 hrs and 4 minutes a day. How is this possible? I can’t be on Google more than 10 minutes a day let alone 24 hrs. I think it’s probably tracking whatever Google does when I’m not in the app or on the cite as part of screen time, but I can’t get it to stop. Are other people having this issue? How do I stop this so I can see my real screen time?
1
0
359
Jan ’25
NFC iOS 18.0 slow
Why NFC tags shown speed is slower than iOS 16.0? After paying with Apple Wallet with iOS 18.0, it seems that it could only detect the NFC tags after 5s, it is the particularity of the iOS 18.0? How can it be quick as former version?
0
0
277
Jan ’25
Camera's settings at calibration time
Hi everyone, I am wondering under which settings the camera(s) were set by the time they were calibrated. For instance, one aspect that is easy to find is the reference resolution of the images taken when calibrating the intrinsics, this is by retrieving intrinsicMatrixReferenceDimensions. Making sure that the principal point is referenced to the by the time resolution used when the calibration was ongoing. However, recently I saw that there are focusing modes that potentially displace the lens' physical position. Settings like: AutoFocusRangeRestriction: none, near, far setFocusModeLocked: Locks the lens position at the specified value, and sets the focus mode to a locked state. My concern lies the impact this focusing lens displacements have on the intrinsic matrix parameters, if the lens is displaced, these parameters no longer describe the camera since the lens position has changed w.r.t. the lensPosition set when they were calibrated [0-1]. If my understanding is correct the AutoFocusRangeRestriction is just a range freedom the system is allowed to auto-focus and not a specific lens position. Conversely, the setFocusModeLocked does indeed fix the lensPosition to a certain value [0 - 1]. In simple words, what is the focus lensPosition the cameras were set when calibrating them for intrnisics?
0
0
460
Jan ’25
First App for Mac (Memory Pro) Node-Based Diagram
Greetings Apple Communithy, Caraveo here, I am attempting to create an node-based diagram app... this is my first app. I am want to create an app that will help me personally organize my career, ideas, and projects. Its a document based app.... that allows users to store files into a .memory extension. For example users will be able to create a file called "myBook.memory" I am attempting to create a work-flow where users can "clone" files into each node. PDFs, Documents, Audio, Video, Media, etc. They can then just work with their .memory file and share it, back it up, manage it... To me this is very important..... it will help me immensely... its a new super simple way to manage your ideas. Please learn more here.... MemoryProApp.com I need a co-coder, alpha testers, and anyone that is interested in working on this project. I am having issues with the file attachements and the documentation saving is failing on me for some reason. Thank you everyone!
0
0
343
Feb ’25
Error creating FileProvider domain on external drive
Hi, I am trying to use the new FileProvider feature available on macOS 15 to create a FileProvder domain on an external drive. I am creating the domain with the initializer init(displayName:, userInfo:, volumeURL:) But when I try to add the domain with NSFileProviderManager.add() I get error NSCocoaErrorDomain, code 3328 - feature not supported. My external drive is APFS formatted and encrypted. I am checking its eligibility with NSFileProviderManager.checkDomainsCanBeStoredOnVolume(at:) and the result is "eligible". What should be done to solve this problem - is there a specific entitlement I have to add? I checked the possible entitlements and I don't see anything pointing in this direction. I will be very grateful for any help!
0
0
318
Jan ’25
MAC OS Sequoia 15.2 and Thunderbolt incompatibilities
15.2 has a major problem with Thunderbolt devices. Dozens of reports on the discussion forum after people upgraded from prior versions. In my case 15.1 was working flawlessly. After upgrading to 15.2 the MAC PRO (2019) won't even boot with multiple Thunderbolt devices attached. If as suggested I disconnect all those devices the MAC boots but I no longer have my Thunderbolt drives available. Someone from Apple really needs to start listening to this. We have posted feedback after feedback and I keep getting told no one else has this problem. Well 4 pages of people on the discussion forum would disagree with that.
1
0
481
Dec ’24
Rejected After 40 Days with a US LLC for Publishing App on Google Play: Anyone with Similar Experience?
Hi everyone, I’m a developer from Argentina, and I recently attempted to publish my app on Google Play under a US LLC. I submitted all the required documentation and followed the process step-by-step. After 40 days of back-and-forth communication and providing all the requested information, my application was ultimately rejected without a clear explanation. I understand that having a US company and bank account is a requirement for developers like me to operate internationally, but this rejection has left me quite confused about what went wrong. Has anyone else faced a similar situation? If so, how did you resolve it? Any advice or guidance would be greatly appreciated! Thanks in advance!
0
0
255
Dec ’24
Does My Swift Student Challenge App Need to Be Fully Functional?
Hi everyone, I'm working on my submission for the Swift Student Challenge and wanted to clarify something—does the application need to be fully functional in every aspect to be eligible for submission? Or is it acceptable if some features aren't fully implemented, as long as the overall experience showcases my coding skills and creativity? Would appreciate any insights from past participants or anyone familiar with the guidelines! Thanks!
1
0
621
Jan ’25
Can't Access App Store Connect
Hi, I am a new user here, I have created my apple developer account and purchased an apple developer membership for a year. I have received my web order details and also the invoice few days ago but when I try to go to App Store Connect it won't let me in. I have contacted the apple developer support 3 days ago but I did not received any response yet. It's frustrating. I do not know much how to navigate on these apple products and devices so I am kind of lost here. Your help or advice, would be greatly appreciated. Btw, I believed I have already enrolled in this apple developer membership because every time I tried to click enrol it leads me to another purchase membership page which I have already paid, so I ended up clicking the withdraw membership instead of clicking the purchase tab. Thank you in advance to those who are able to address this concern.
0
0
134
Feb ’25
Overnightforecast data from weatherResponse.dailyForecast.forecast array object
Background: We are using Apple WeatherKit for an app to fetch future weather data specialty cloudCover and condition and pretipitationChance from the Overnightforecast data from weatherResponse.dailyForecast.forecast array object. Code Sample: On xcode on Swift and Swift UI using Apple WeatherKit task{ do{ let weatherResponse= try await self.weatherService.forecast(for: latLong) let cloudCover = weatherResponse.dailyForecast.forecast[0].overnightforecast.cloudCover Issue: While we are on debug mode, we can literally see overnightforecast.cloudCover data (as well as condition and pretipitationChance) is available under from index 0 to index 10 of weatherResponse.dailyForecast.forecast array object but when we are trying to assign this property, its throwing error as "overnightforecast object not present under weatherResponse.dailyForecast.forecast array object" Attachment:
3
0
382
Feb ’25
BLE ADVERTISE
Dear Apple: The program we developed uses BLE broadcasting to discover devices. The discovered device sends three broadcasts, but when we debug the program, we found that the addresses reported by centralManager::didDiscoverPeripheral for the same device's three broadcasts are actually different CBPeripheral * addresses. I would like to ask how we can identify that these three broadcasts are from the same device? Are there any variables in the peripheral that can identify it as the same device? Thanks。
1
0
228
Feb ’25
chase app not working on Iphone iOS18.3
Hi! can someone please help me? the chase app will not work nor can I access it in the browser. I have tried literally everything - restarting my phone, deleting the app and reinstalling, resetting network settings, resetting all settings, clearing caches on all browsers. Everything is up to date. apps and my OS. nothing. I don’t want to wipe my phone by doing a factory reset. I called chase and they said it was a known issue and they’re working on a solution and that it would be resolved that day. this was 3 days ago. Is anyone else experiencing this issue?? What caused it and what is a solution?
1
0
263
Feb ’25
Using txt files with searching strings for an iOS app
When dealing with SwiftUI and searchable modifier, I know you can use URL or hard code data to search when building projects in Xcode. I am looking to see if you can use a txt file as a way or storing string data of lists to search from when your device is offline when using the search modifier. Then when connected to internet you can update the search with url connection that then updates the txt file so you can do new searches the next time you are offline again. Is this something that is possible?
0
0
254
Jan ’25