Posts under Developer Tools & Services topic

Post

Replies

Boosts

Views

Activity

Trouble with getting a background refresh task working
I am able to setup and schedule a background refresh task as well as manually trigger it via Xcode and the simulator tied to my iPhone 11 Pro test phone using the e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier: However, it won't execute on the app on it's own. And yes, the pinfo.list entries are correct and match! I know the scheduler is not exact on timing but it's just not executing on its own. Since I can trigger manually it I'm pretty sure the code is good but I must be missing something. I created an observable object for this code and the relevant parts look like this: class BackgroundTaskHandler: ObservableObject { static let shared = BackgroundTaskHandler() var taskState: BackgroundTaskState = .idle let backgroundAppRefreshTask = "com.opexnetworks.templateapp.shell.V1.appRefreshTask" func registerBackgroundTask() { BGTaskScheduler.shared.register(forTaskWithIdentifier: backgroundAppRefreshTask, using: nil) { task in self.handleAppRefresh(task: task as! BGAppRefreshTask) } self.updateTaskState(to: .idle, logMessage: "✅ Background app refresh task '\(backgroundAppRefreshTask)' registered.") BGTaskScheduler.shared.register(forTaskWithIdentifier: backgroundTaskIdentifier, using: nil) { task in self.handleProcessingTask(task: task as! BGProcessingTask) } self.updateTaskState(to: .idle, logMessage: "✅ Background task identifier '\(backgroundTaskIdentifier)' registered.") } // Handle the app refresh task private func handleAppRefresh(task: BGAppRefreshTask) { self.updateTaskState(to: .running, logMessage: "🔥 app refresh task is now running.") PostNotification.sendNotification(title: "Task Running", body: "App refresh task is now running.") let queue = OperationQueue() queue.maxConcurrentOperationCount = 1 let operation = BlockOperation { self.doSomeShortTaskWork() } task.expirationHandler = { self.updateTaskState(to: .expired, logMessage: "💀 App refresh task expired before completion.") PostNotification.sendNotification(title: "Task Expired", body: "App refresh task expired before completion \(self.formattedDate(Date())).") operation.cancel() } operation.completionBlock = { if !operation.isCancelled { self.taskState = .completed } task.setTaskCompleted(success: !operation.isCancelled) let completionDate = Date() UserDefaults.standard.set(completionDate, forKey: "LastBackgroundTaskCompletionDate") self.updateTaskState(to: .completed, logMessage: "🏁 App refresh task completed at \(self.formattedDate(completionDate)).") PostNotification.sendNotification(title: "Task Completed", body: "App refresh task completed at: \(completionDate)") self.scheduleAppRefresh() // Schedule the next one } queue.addOperation(operation) } func scheduleAppRefresh() { // Check for any pending task requests BGTaskScheduler.shared.getPendingTaskRequests { taskRequests in let refreshTaskIdentifier = self.backgroundAppRefreshTask let refreshTaskAlreadyScheduled = taskRequests.contains { $0.identifier == refreshTaskIdentifier } if refreshTaskAlreadyScheduled { self.updateTaskState(to: .pending, logMessage: "⚠️ App refresh task '\(refreshTaskIdentifier)' is already pending.") // Iterate over pending requests to get details for taskRequest in taskRequests where taskRequest.identifier == refreshTaskIdentifier { let earliestBeginDate: String if let date = taskRequest.earliestBeginDate { earliestBeginDate = self.formattedDate(date) } else { earliestBeginDate = "never" } self.updateTaskState(to: .pending, logMessage: "⚠️ Pending Task: \(taskRequest.identifier), Earliest Begin Date: \(earliestBeginDate)") } // Optionally, show a warning message to the user in your app PostNotification.sendNotification(title: "Pending Tasks", body: "App refresh task is already pending. Task scheduling cancelled.") return } else { // No pending app refresh task, so schedule a new one let request = BGAppRefreshTaskRequest(identifier: refreshTaskIdentifier) request.earliestBeginDate = Date(timeIntervalSinceNow: 15 * 60) // Earliest in 15 minutes do { try BGTaskScheduler.shared.submit(request) self.taskState = .scheduled self.updateTaskState(to: .scheduled, logMessage: "✅ App refresh task '\(refreshTaskIdentifier)' successfully scheduled for about 15 minutes later.") PostNotification.sendNotification(title: "Task Scheduled", body: "App refresh task has been scheduled to run in about 15 minutes.") } catch { print("Could not schedule app refresh: \(error)") self.taskState = .failed self.updateTaskState(to: .failed, logMessage: "❌ Failed to schedule app refresh task.") } } } } // Short task work simulation private func doSomeShortTaskWork() { print("Doing some short task work...") // Simulate a short background task (e.g., fetching new data from server) sleep(5) print("Short task work completed.") } In my AppDelegate I trigger the registerBackground task in the didFinishLaunchingWithOptions here: BackgroundTaskHandler.shared.registerBackgroundTask() And I scheduled it here in the launch view under a task when visible: .task { BackgroundTaskHandler.shared.scheduleAppRefresh() } I've also tried the last in the AppDelegate after registering. either way the task schedules but never executes.
4
0
1.3k
Feb ’25
Xcode 16 cant see our project Git repo in Repo Navigator
For a number of years we have managed our iOS projects using Sourcetree and command line Git or Visual Code. I wanted to use the XCode Source control for a more integrated development experience. However, depite the fact that the Git repo is in the root of the XCode project tree, XCode cannot see that repo in the Source Control panel. Source Control IS enabled in settings I tried to add the repo using. Integrate >> New Git Repository. but Xcode then says there is an existing repository and does nothing. How do I add the existing local repo into the Xcode environment or does it now need to be managed only externally because it was not created using Xcode ? Thanks
3
1
227
Feb ’25
Apple renewal issue
Dear Apple, I had successfully renew my membership with bellow email "Your Apple Developer Program membership has been renewed for another year and your membership details are below. We look forward to the innovative new apps you'll bring to Apple platforms." A few days later, I got another email After several attempts, we're unable to collect payment using the payment method you provided to renew your Apple Developer Program membership. Your access to the Apple Developer Program has been disabled. At https://developer.apple.com/account, It displays a button with "Enroll today" instead of "Renew membership". Clicking it show below error "Your Apple Account is already associated with the Account Holder of a membership." I've tried getting support from https://developer.apple.com/contact/topic/SC1101/subtopic/30007/solution/select, but no reply after a few days. All my apps are not able to receive notifications and I'm afraid it will be removed from PlayStore soon. Anyone experienced such issue and anyway to get it resolved quick?
4
1
277
Feb ’25
Crashes on Xcode 16.2
Xcode 16.2 crashes when opening .swift or .xib files. ------------------------------------- Translated Report (Full Report Below) ------------------------------------- Process: Xcode [54754] Path: /Applications/Xcode-16.2.0.app/Contents/MacOS/Xcode Identifier: com.apple.dt.Xcode Version: 16.2 (23507) Build Info: IDEApplication-23507000000000000~2 (16C5032a) Code Type: ARM-64 (Native) Parent Process: launchd [1] User ID: 501 Date/Time: 2025-02-10 07:45:46.2320 +0900 OS Version: macOS 15.3 (24D60) Report Version: 12 Anonymous UUID: C4102718-BC60-1A08-FB0D-3B7AAB19D6D0 Sleep/Wake UUID: 2FE8B1FA-D2A5-4F55-9DF5-2178F3212F84 Time Awake Since Boot: 120000 seconds Time Since Wake: 33305 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6 Terminating Process: Xcode [54754] Application Specific Information: abort() called Application Specific Signatures: NSInvalidArgumentException Application Specific Backtrace 0: 0 CoreFoundation 0x00000001971f6e80 __exceptionPreprocess + 176 1 DVTFoundation 0x000000010643788c DVTFailureHintExceptionPreprocessor + 388 2 libobjc.A.dylib 0x0000000196cdecd8 objc_exception_throw + 88 3 CoreFoundation 0x00000001972ac1d8 -[NSObject(NSObject) __retain_OA] + 0 4 CoreFoundation 0x0000000197163830 ___forwarding___ + 1568 5 CoreFoundation 0x0000000197163150 _CF_forwarding_prep_0 + 96 6 AssetCatalogFoundation 0x000000011c04aa68 -[IBICAbstractCatalogItem(IBICManifestArchivistDelegate) manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 1380 7 AssetCatalogFoundation 0x000000011c10b3c8 -[IBICBundleIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 112 8 AssetCatalogFoundation 0x000000011c065e0c -[IBICAppIconSet manifestArchivist:applyPropertiesFromChildEntry:toChild:results:] + 240 9 AssetCatalogFoundation 0x000000011c048704 -[IBICManifestArchivist childFromChildEntry:results:] + 192 10 AssetCatalogFoundation 0x000000011c048890 __73-[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:]_block_invoke + 152 11 AssetCatalogFoundation 0x000000011c122668 IBWithObjectBufferResultingInArray + 72 12 AssetCatalogFoundation 0x000000011c0487b4 -[IBICManifestArchivist childrenFromContentsJSONChildrenEntries:results:] + 128 13 AssetCatalogFoundation 0x000000011c0490ec -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 456 14 AssetCatalogFoundation 0x000000011c0548fc -[IBICSlottedAsset replaceChildrenFromFileSystemSnapshot:results:] + 116 15 AssetCatalogFoundation 0x000000011c04924c -[IBICManifestArchivist replaceChildrenFromFileSystemSnapshot:results:] + 808 16 AssetCatalogFoundation 0x000000011c042e54 -[IBICFolder replaceChildrenFromFileSystemSnapshot:results:] + 116 17 AssetCatalogFoundation 0x000000011c08c8e8 -[IBICAbstractCatalog replaceChildrenWithDiskContent:] + 140 18 AssetCatalogFoundation 0x000000011c0798f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPathWhileItIsKnowThatSyncOperationsAreNotInflightAndAreDisabled:] + 140 19 AssetCatalogFoundation 0x000000011c0796f0 -[IBICCatalogSynchronizer replaceCatalogWithContentsOfPath:] + 104 20 AssetCatalogFoundation 0x000000011c077380 +[IBICCatalogSynchronizer synchronizerTakingOwnershipForCatalog:atPath:] + 92 21 AssetCatalogFoundation 0x000000011c0773e8 +[IBICCatalogSynchronizer synchronizerForCatalogAtPath:] + 68 22 AssetCatalogKit 0x000000011a249b04 __69+[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:]_block_invoke + 52 23 AssetCatalogFoundation 0x000000011c0c2708 -[NSMutableDictionary(IBMutableDictionaryAdditions) ib_objectForKey:creatingIfNecessaryWithBlock:] + 100 24 AssetCatalogKit 0x000000011a249a60 +[IBICCatalogMediaRepository retainedCatalogSynchronizerForFilePath:] + 136 25 AssetCatalogKit 0x000000011a24b660 -[IBICCatalogMediaRepository _addSynchronizerForCatalogAtPath:] + 48 26 AssetCatalogKit 0x000000011a24b12c __104-[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:]_block_invoke + 544 27 AssetCatalogKit 0x000000011a24acd8 -[IBICCatalogMediaRepository notifyObserversAfterPossiblyMutatingWithBlock:] + 88 28 AssetCatalogKit 0x000000011a24aed8 -[IBICCatalogMediaRepository fileReferenceObserverDidReportUpdatedAndAddedResourcesByPath:removedPaths:] + 132 29 IDEKit 0x000000010a4f0e80 __54-[IDEContainerContentsMediaRepository _startObserving]_block_invoke + 596 30 IDEFoundation 0x000000010ea491c8 -[IDEContainerContentProductionCoordinator deliverPendingResults:] + 172 31 DVTFoundation 0x0000000106618994 __48-[DVTDelayedInvocation initWithTarget:selector:]_block_invoke + 24 32 DVTFoundation 0x0000000106619a2c -[DVTDelayedInvocation runBlock:] + 272 33 Foundation 0x00000001984026b4 __NSFirePerformWithOrder + 296 34 CoreFoundation 0x0000000197183be8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36 35 CoreFoundation 0x0000000197183ad4 __CFRunLoopDoObservers + 552 36 CoreFoundation 0x0000000197183104 __CFRunLoopRun + 788 37 CoreFoundation 0x0000000197182734 CFRunLoopRunSpecific + 588 38 HIToolbox 0x00000001a26f1530 RunCurrentEventLoopInMode + 292 39 HIToolbox 0x00000001a26f7348 ReceiveNextEventCommon + 676 40 HIToolbox 0x00000001a26f7508 _BlockUntilNextEventMatchingListInModeWithFilter + 76 41 AppKit 0x000000019acfa848 _DPSNextEvent + 660 42 AppKit 0x000000019b660c24 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688 43 AppKit 0x000000019aced874 -[NSApplication run] + 480 44 IDEKit 0x000000010a278f14 -[IDEApplication run] + 192 45 AppKit 0x000000019acc4068 NSApplicationMain + 888 46 dyld 0x0000000196d1c274 start + 2840
2
0
490
Feb ’25
WidgetKit keep crashing and widgets not displaying
So I have a MacOS application that was working just fine before Xcode 16. The Widgets are not working anymore. The main application and the widgets share a file in a common App Group. The widget app now get a permission error when accessing the file. Also, the Widget Kit simulator keeps crashing. I also try to start a new project in Xcode, add a target with a Widget extension with an App Intent and run it, and it also crashes. Sometimes, it doesn't crash but just display the error: "Failed to load widget. The operation couldn't be completed. (WidgetKit_Simulator.WidgetDocument.Error error 2.). Edited to attach WidgetKit error log widgetKitError.txt
8
4
1.8k
Feb ’25
UIInputViewController获取外部输入框的点击事件
通过UIInputViewController自定义的一个键盘,键盘内部有一个自定义的输入框UITextField。 需要实现的效果:外部输入框和键盘上自定义输入框可互相点击切换第一响应,从而控制输入的文字插入在哪个输入框。 遇到的问题:当点击了自定义输入框并设置了自定义输入框为第一响应之后,再次点击外部输入框时,无法获取到点击外部输入框的事件,从而无法取消内部输入框的第一响应事件。
4
1
172
Feb ’25
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
1
475
Feb ’25
Assistance Needed – Xcode: Command PhaseScriptExecution Failed with a Nonzero Exit Code
Main Issue: While building an iOS project using IL2CPP in Unity, I encountered the following error: Command PhaseScriptExecution failed with a nonzero exit code Sub-Issue: Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected. Error Message: Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Mac, you must have Xcode installed. Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK. Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app. Or be selected using xcode-select. It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements. More information and installation instructions can be found here: https://developer.apple.com/support/xcode/ Specific Xcode versions can be downloaded here: https://developer.apple.com/download/more/ Unable to detect any compatible iPhoneOS SDK! Additional Errors & Observations: bee_backend Not Found chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing. 2. IL2CPP Build Failure Build failed with 0 successful nodes and 0 failed ones Error: Internal build system error. BuildProgram exited with code 1. 3. Xcode Not Detected by Unity Unable to detect any compatible iPhoneOS SDK! Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2. Environment Details: macOS Version: Sonoma 14.5 Mac Model: MacBook Air (Retina, 13-inch, 2018) Processor: 1.6 GHz Dual-Core Intel Core i5 Memory: 8GB 2133 MHz LPDDR3 Graphics: Intel UHD Graphics 617 1536MB Unity Version: 2022.2.21f1 Installed Unity Modules: ✅ iOS Build Support ✅ Mac Build Support (IL2CPP) ✅ IL2CPP Current Status & Key Issues: ✅ Xcode is properly installed, and xcode-select -p shows the correct path. ✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available. ✅ bee_backend is present and executable when checked manually. ❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process. ❌ Unable to successfully build the iOS project. Could you please provide guidance on how to resolve this issue? Xcode Build Settings (for reference): Command PhaseScriptExecution failed with a nonzero ALWAYS_SEARCH_USER_PATHS = NO ARCHS = arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon CLANG_CXX_LANGUAGE_STANDARD = c++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_OBJC_ARC = YES CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution CODE_SIGN_IDENTITY[config=Debug] = Apple Development CODE_SIGN_IDENTITY[config=Release] = Apple Distribution CODE_SIGN_STYLE = Manual DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7 IPHONEOS_DEPLOYMENT_TARGET = 15.6 LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite. SDKROOT = iphoneos SUPPORTED_PLATFORMS = iphoneos TARGETED_DEVICE_FAMILY = 1,2 UNITY_RUNTIME_VERSION = 2022.2.21f1 UNITY_SCRIPTING_BACKEND = il2cpp This build is intended for a production release. I would appreciate any help in resolving this issue. Thank you!
1
0
707
Feb ’25
Metal Integration with SwiftUI
Hello! I have asked this question in previous years, but I want to make sure I can be safe as each challenge could be different. Are applicants for the Swift Student Challenge allowed to use the features and technologies involved with Metal/MetalKit? Last year, the answer was yes. I have seen a few people here and there use it with Swift and won. I would like to know if we can use it for the 2025 challenge for this year as well. Thanks! :)
2
0
535
Feb ’25
How to custom swift playground preview application ($title.app) window size
I used Swift Playground to develop application in Mac OS. Also using ZStack I used limited area in full page (using .frame(width: $, height: $)). However using command + R or clicking start button to see preview .app, while non resizing application my ZStack show as cutted. Please tell me how to set preview .app frame size as width, height... The buttom code is ContentView.swift code. @main struct ContentView: App { init() { MyFont.registerFonts() } // @StateObject private var audioPlayer = AudioPlayer() var body: some Scene { WindowGroup { NavigationStack { StartMenuView() .frame(minWidth: 594, maxWidth: 594, minHeight: 1142, maxHeight: 1142) .preferredColorScheme(.dark) // Dark Mod .statusBar(hidden: true) // Hidden Status Bar .edgesIgnoringSafeArea(.all) // Ignoring Safe Area } } .windowResizability(.contentSize) } } Thank you for reading. ![]("https://developer.apple.com/forums/content/attachment/8ad9f219-6caa-49bf-b8c3-e4b7c91ab40f" "title=image.png;width=1050;height=803") ![]("https://developer.apple.com/forums/content/attachment/395ee85e-9543-4bfd-9caf-3ce3c2ca8414" "title=image2.png;width=1104;height=973")
0
0
341
Feb ’25
Developer membership renew button not showing
My membership got expired and I don't see the renew button anywhere on the website or the developer app. In my case, I have changed the developer account email address 6 months ago and the new email was not mapped for renewal that's why the renew button was not showing (I guess). I tried to reach to Apple support, the phone support wasn't available so I wrote couple of emails. After 48 hrs they have sent an email saying the new email address has been mapped but still I see no renew button. I added required funds and disabled the auto-renew option yet no hope. it's been four days still no replay from Apple. I was constantly checking for the phone support. Today I saw phone support was available so I immediately requested the call and explained the support staff about my situation and he fixed within a minute. so guys if you are facing similar issue and see no solution even after contacting multiple times via emails, wait for phone support and request a call. This is the fastest and efficient way to resolve this "renew" issue. add the required funds so that the subscription payment will be done instantly. Have a good day y'll
0
0
317
Feb ’25
Assistance Needed – Xcode: Command PhaseScriptExecution Failed with a Nonzero Exit Code
Main Issue: While building an iOS project using IL2CPP in Unity, I encountered the following error: Command PhaseScriptExecution failed with a nonzero exit code Sub-Issue: Unity is unable to detect a compatible iPhoneOS SDK, even though Xcode is correctly installed and functioning as expected. Error Message: Unity.IL2CPP.Bee.BuildLogic.ToolchainNotFoundException: IL2CPP C++ code builder is unable to build C++ code. In order to build C++ code for Mac, you must have Xcode installed. Building for Apple Silicon requires Xcode 9.4 and Mac 10.12 SDK. Xcode needs to be installed in the /Applications directory and have a name matching Xcode*.app. Or be selected using xcode-select. It's also possible to use /Library/Developer/CommandLineTools if those match the listed requirements. More information and installation instructions can be found here: https://developer.apple.com/support/xcode/ Specific Xcode versions can be downloaded here: https://developer.apple.com/download/more/ Unable to detect any compatible iPhoneOS SDK! Additional Errors & Observations: bee_backend Not Found chmod: /Users/vaunicacalji/Desktop/DinoKite/Il2CppOutputProject/IL2CPP/build/deploy_x86_64/bee_backend/mac-x86_64/bee_backend: No such file or directory Issue: Manually checking the file, bee_backend does exist and is executable, but the build process still reports it as missing. 2. IL2CPP Build Failure Build failed with 0 successful nodes and 0 failed ones Error: Internal build system error. BuildProgram exited with code 1. 3. Xcode Not Detected by Unity Unable to detect any compatible iPhoneOS SDK! Issue: Running xcode-select -p confirms that Xcode is installed at /Applications/Xcode.app/Contents/Developer, and xcodebuild -showsdks lists available SDKs, including iOS 18.2. Environment Details: macOS Version: Sonoma 14.5 Mac Model: MacBook Air (Retina, 13-inch, 2018) Processor: 1.6 GHz Dual-Core Intel Core i5 Memory: 8GB 2133 MHz LPDDR3 Graphics: Intel UHD Graphics 617 1536MB Unity Version: 2022.2.21f1 Installed Unity Modules: ✅ iOS Build Support ✅ Mac Build Support (IL2CPP) ✅ IL2CPP Current Status & Key Issues: ✅ Xcode is properly installed, and xcode-select -p shows the correct path. ✅ xcodebuild -showsdks confirms that iOS SDK 18.2 is available. ✅ bee_backend is present and executable when checked manually. ❌ Unity still reports Unable to detect any compatible iPhoneOS SDK! during the build process. ❌ Unable to successfully build the iOS project. Could you please provide guidance on how to resolve this issue? Xcode Build Settings (for reference): ALWAYS_SEARCH_USER_PATHS = NO ARCHS = arm64 ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon CLANG_CXX_LANGUAGE_STANDARD = c++0x CLANG_CXX_LIBRARY = libc++ CLANG_ENABLE_OBJC_ARC = YES CODE_SIGN_IDENTITY[sdk=iphoneos*] = iPhone Distribution CODE_SIGN_IDENTITY[config=Debug] = Apple Development CODE_SIGN_IDENTITY[config=Release] = Apple Distribution CODE_SIGN_STYLE = Manual DEVELOPMENT_TEAM[sdk=iphoneos*] = 4429TL28T7 IPHONEOS_DEPLOYMENT_TARGET = 15.6 LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks PRODUCT_BUNDLE_IDENTIFIER = com.torihiplay.DinoKite PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*] = DinoKite. SDKROOT = iphoneos SUPPORTED_PLATFORMS = iphoneos TARGETED_DEVICE_FAMILY = 1,2 UNITY_RUNTIME_VERSION = 2022.2.21f1 UNITY_SCRIPTING_BACKEND = il2cpp This build is intended for a production release. I would appreciate any help in resolving this issue. Thank you!
1
0
345
Feb ’25
Compiling old code with XCode give the error [XSym <- Unknown type name ‘Xsym’]
When I try to compile with XCode an app that is about 10 years old gives me the following compiler errors in JSONModel.h header file. There are only 4 lines in that file. Content of file with the error messages. XSym <- Uknown type name ‘Xsym’ 0075 <- Expected identifier or ‘(’ a7b090c047283ff76fc7f1def7ba7425 ../../../JSONModel/JSONModel/JSONModel/JSONModel.h The app was originally compiled wit XCode 3.2, targeting iPhone 7 Now I am using XCode 16, targeting iPhone 12. Original coder is unaccessible. I am very new to this environment and any guidance / assistance is greatly appreciated. Please let me know if it is more appropriate to post this somewhere else.
1
0
216
Feb ’25