The non-async signature for WKNavigationDelegate's decidePolicyForNavigationAction has changed between iOS 17 and 18.
In 17 it is
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void)
In 18 it adds the MainActor attribute to the decision handler
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping @MainActor (WKNavigationActionPolicy) -> Void)
We deliver xcframeworks to our customers with objects that implement this function, and when those customers upgraded to Xcode 16.0 / iOS 18, those frameworks broke despite ABI stability (since that's unrelated to the WebKit SDK's public signatures). I presume this is because the WebKit dependency in the iOS 18 SDK does not match the signature used those older frameworks (and the IDE errors seem to support this).
We will of course deliver new frameworks targeting the new SDK, but that takes regression testing and release planning. In the meantime, this has been exacerbated by the fact that macOS Sequoia does not support Xcode 15. Those of our customers whose machines updated to Sequoia cannot build their projects at all until we're able to deliver frameworks that are compatible.
Was this an expected change? I didn't see any deprecation warnings in iOS 17, and unless we're supposed to bundle WebKit within the framework somehow, I'm not sure how we could have done this without forcing the Xcode versioning on our customers.
Is there a way we package this differently or some other solution to make our existing frameworks compatible with iOS 18 without having to target that SDK?
Dive into the vast array of tools, services, and support available to developers.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
在idea中Java spring 框架如何运行啊,求求大佬们,我跑https://gitee.com/lab1024/smart-admin 这个包老是报错,不让我写入
A few days ago, I updated my phone to the latest beta version 18.1, and usually the hotspot of my phone is on to connect to other devices. Today, I encountered a problem with the internet. After realizing the problem with the internet speed, I reset the network and after Hotspot reset cannot be accessed anywhere
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
On my mac I have MacOs15 and Xcode 16 installed. I'm working with cocoapods, when adding a new target to my App pod update it fails. What can I do to solve the problem?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Hello everyone,
I recently upgraded from Xcode 15.4 to Xcode 16.0. While the build generated using Xcode 15.4 worked perfectly, I encountered an issue with the release build after the upgrade. Specifically, the release build fails to communicate with a BLE 4.2-based device.
I’ve compared the ‘Project Properties’ between Xcode 15.4 and 16.0 but couldn’t identify any differences that might be causing this issue.
Could anyone provide insights into what might be causing this problem? Is a specific library used in my project incompatible with Xcode 16.0, or is this an issue with Xcode 16.0 itself?
No warning or exception is visible when debugging an Xcode 16.0-based release mode application.
Any help or suggestions would be greatly appreciated!
Thank you!
We always receive six times about the same TransactionID.
You can see the image.
It's not five times.
We are under V2.
Any comments will be helpful.
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
Tags:
App Store Server Notifications
System Environment Sequoia 15.0, Xcode 16.0 and / or Xcode 16.1.b2. iMac 2019.
I have started the project and selected run with an iPhone 15 with iOS 18.0.1 .
The iPhone is connected via USB (I switched ports and changed cables)
A message comes up with: "Copying shared cache symbols from iPhone15 (0% completed)". After 6 hours I stopped it.
I have the same problem with an iPad Pro and IPadOS 18.0.1
i had never this problem with iOS 17 and earlier.
I was able to successfully test the project with an old iPad and IOS 15.4. The copying of the symbol took about 5 mins.
so it seems that there is a problem with iOS 18.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I have developed my flutter app in Android studio on my HP computer and now that I am trying to run it on the MacBook Pro that I have, I always get
this
"Error: Your Xcode project requires migration. See https://docs.flutter.dev/ios-project-migration for details."
I got into a lot of detail with this and also tried everything the page says of the url given but I cannot seem to get over this problem.
Topic:
Developer Tools & Services
SubTopic:
Xcode
unexpected service error: The Xcode build system has crashed. Build again to continue.
"react-native-image-crop-picker": "^0.40.3"
Added this version but still getting issue
Please help
Hi,
I created an iOS app compatible watchOS app which was running perfectly fine before I updated my Xcode to use iPhone16. But after updating, I started to get kclErrorDomain error: 1 and I am not sure why is it happening after update.
I am trying to use coreLocation module as-
import Foundation
import CoreLocation
import Combine
class LocationManager: NSObject, ObservableObject, CLLocationManagerDelegate {
private var locationManager = CLLocationManager()
@Published var location: CLLocation?
override init() {
super.init()
locationManager.delegate = self
locationManager.desiredAccuracy = kCLLocationAccuracyBest
locationManager.requestWhenInUseAuthorization()
locationManager.startUpdatingLocation()
}
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
if let location = locations.last {
self.location = location
print("Updated location: \(location.coordinate.latitude), \(location.coordinate.longitude)")
} else {
print("No locations received")
}
}
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
print("Failed to find user's location: \(error.localizedDescription)")
}
}
and I am trying to use it as-
@StateObject private var locationManager = LocationManager()
guard let currentLocation = locationManager.location else {
signInError = "Location not available"
isLoading = false
return
}
let latitude = currentLocation.coordinate.latitude
let longitude = currentLocation.coordinate.longitude
sendToBackend(email: email, password: password, deviceName: deviceName, deviceModel: deviceModel, deviceIdentifier: deviceIdentifier, latitude: latitude, longitude: longitude)
Can someone help me regarding this?
Hi to all,
I'm new to WatchOS development and trying to enable the Developer Mode on my Apple Watch Series 7. I've enabled Developer Mode on my iPhone and did the same on my Apple Watch. After enabling Developer Mode on the watch it asks me to restart the watch. After a restart it asks me again if I want to enable Developer Mode. Of course! I don't succeed in installing the app on my watch because Xcode is "waiting for first unlock" of my watch. When I look in Settings > Privacy > Developer Mode the toggle switch is disabled. I can enable the switch but the watch asks me to restart and this is the loop I'm in.
Anybody suggestions for 'permanently enabling' Developer Mode on my Apple Watch?
Thanks in advance!
Sometimes when I am writing my code, previews blacks out and crashes and I get the warning PreviewShell crashed unexpectedly.
My Xcode has also been crashing a lot more after updating to Xcode 16. Does anyone have any idea why?
I was on PB5, then options for Betas disappeared at some point. I tried logging in and out but it did not solve the issue..
Any ideas what to do?
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
I have a SwiftPM package that has a binary target pointing to a static XCFramework with a binary for macOS x86_64 and arm64 and one for iOS on arm64. If I set the destination to my iPhone, it builds successfully, but if the target is my Mac, it fails with a linker warning saying that it Could not find or use auto-linked library, and later terminating because some symbols are undefined. This only happens when building through Xcode; when I try using swift build, the build completes normally.
How do I fix the error?
Waiting for the debugger to connect to iPhone (nick) on port 10000 via USB…”
Hi,
I developed an app. It is using Firebase Cloud Messaging to send notifications. I got my 5th rejection from Apple. I tried to distribute the app from Xcode with new Provisining Profile and Certificates but it go rejected. I used EAS to distribute it automatically but 5 minutes ago it is again rejected. I tried on iPhone and iPad simulators, it is working perfectly fine. Even sending notifications are working perfect. Please can you help me? My crash reports are :
crash1
crash2
crash3
I’m encountering an issue since I started using Xcode 16. I have a widget in my app, and I'm trying to organize the code by splitting it into different files for better structure.
However, when I do this, I get an error:
error: Unexpected input file: /Users/******/Desktop/TestApp/TestAppWidget/Provider.Swift (in target 'TestAppWidgetExtension' from project 'TestApp')
I want to emphasize that if I keep all the code in one file, everything works fine.
I've checked the Target Membership, and it's set up correctly.
but I don't understand why this is happening only in Xcode 16.
Has anyone else experienced a similar issue or has any ideas on why this is occurring? I would appreciate any help!
About technotes
Technotes are focused, timely documents from Apple Developer Technical Support. They explore a wide range of development topics and provide guidance for developers creating apps and accessories for all of Apple’s platforms. Learn about specific development topics through these in-depth technical articles. You can subscribe to this RSS feed to get notified when new technotes are published.
We encourage you to discuss the technotes here in the forums and share your feedback via Feedback Assistant. Let us know if a technote is helpful, or what we can do to improve it. We would appreciate it if you include a Feedback Assistant (FB) number in your forums post, so we can easily track your feedback, and let you know when it’s resolved.
Tagging your post
When tagging your post, please add the relevant tags for the technology area it applies to. You can also add the Technotes tag, if you wish.
Providing feedback
To create new feedback about a specific technote (or technotes as a whole) using Feedback Assistant, use the following path:
What are you seeing an issue with? Developer Tools
Which area are you seeing an issue with? Developer Documentation
What does the documentation issue you are reporting involve? Technotes
Please provide the URL of the content you reporting an issue with: The complete URL of the technote. For example, https://developer.apple.com/documentation/technotes/tn3102-http3-in-your-app.
If you wish to leave feedback on Technotes in general, use https://developer.apple.com/documentation/technotes for the URL.
Then complete the remaining fields appropriately.
We appreciate and look forward to your feedback.
We are trying to integrate "Device Check" and "Device Check - App attest" services to check device integrity and app integrity. We read apple documentation and could not locate the TTL(time-to live) for "Device Token" and "App Attestation Object". Could you let us what TTL for Device Token" and "App Attestation Object"? We can design our architecture based on your answer
I am unable to connect iPhone to Xcode. Getting error -
The developer disk image could not be staged on the host.; Couldn’t communicate with a helper application.
Xcode - 16 Beta
Mac OS - Sonoma 14.6.1
iOS - 17.6.1
VPN - No
Details are as follows:
The developer disk image could not be staged on the host.
Domain: com.apple.dt.CoreDeviceError
Code: 12045
Failure Reason: Couldn’t communicate with a helper application.
User Info: {
DVTErrorCreationDateKey = "2024-08-21 11:04:09 +0000";
DeviceIdentifier = "01162B62-9C06-48A4-B2F7-D17ABD2D35B0";
NSURL = "file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg";
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
Couldn’t communicate with a helper application.
Domain: NSCocoaErrorDomain
Code: 4099
Recovery Suggestion: Try your operation again. If that fails, quit and relaunch the application and try again.
User Info: {
NSDebugDescription = "The connection to service created from an endpoint was invalidated: failed at lookup with error 9 - Bad file descriptor.";
}
--
System Information
macOS Version 14.6.1 (Build 23G93)
Xcode 16.0 (23047) (Build 16A5221g)
Timestamp: 2024-08-21T16:34:09+05:30
**Tried so far - **
Xcode Quit and Reopen
Restart iPhone
Restart Mac
Reinstalling Xcode
Reset Network Settings on iPhone
Developer mode ON/OFF
Unpair and Pair Again
Clear Trusted Computers
Tried with different iPhone Cables(Not needed one but tried)
Factory Reset of iPhone
Please guide how to resolve this.