I am also facing the same issue. did you find any solution for this?
Post
Replies
Boosts
Views
Activity
Finally, I found the solution for this after performing the below steps
After installing Xcode12.5 in macOS Big Sur. Check the CommandLineTools folder are available in Developer folder by executing this command cd /Library/Developer. By using xcode-select --install command we can install CommandLineTools for the xcode.
I am using company provided MacBook Pro. So after executing xcode-select --install command, got network problem error, this is because installation server configuration is different. By using this answer - https://stackoverflow.com/questions/61233173/get-an-alert-cant-download-the-software-because-of-a-network-problem-after-xc/67222114#67222114 i am able to successfully install the CommandLineTools
I am using iOS14.5.1 device. So in this path Applications - Xcode(right click and select show packget contents) - Contents - Developer - Platforms - iPhoneOS.platform - DeviceSupport - renamed 14.5 folder name to 14.5.1
Now i quit Xcode, disconnected iphone.
Reconnected iPhone with mac. Opened Finder app, here it is asking to Trust the iphone. After clicking on trust button i got some error. this error because of McAfee software security check. i have disabled that by following steps in this link - https://stackoverflow.com/questions/65379635/mac-os-trust-request-error-402-653-181
Now i quit Xcode, disconnected iphone. Reconnected iPhone, opened xcode. Click on trust in prompt in both Finder - iphone device name folder, iPhone device
After some time it is successfully paired the device. Navigate to Library - Developer - Xcode - iOS DeviceSupport - 14.5.1 (18E212) arm64e - check info.plist file, symbols folder available. If these files are avaible then our device is successfully paired with mac system and it is ready for debugging.
Now debugging is working fine successfully.
Adding few more details:
When I am inspecting the code got the below errors with the mobile app SFSafariViewCotroller and the required content is not loading, but it is working fine with mobile, desktop Safari browsers and not showing any errors. Refused to load {URL://_csrfRefresh=1} because it does not appear in the frame-ancestors directive of the Content Security Policy.
Sandbox access violation: Blocked a frame at {URL} from accessing a cross-origin frame. Ther being accessed is sandboxed and lacks the "allow-same-origin" flag
Here I am unable to attach the screenshot. So adding stackover link - https://stackoverflow.com/questions/67560540/ios-in-app-with-sfsafariviewcontroller-unable-to-load-another-host-in-iframe for reference
I am using the below code to load the URL in SFSafariViewControl
@IBAction func launchSafariVC(_ sender: Any) {
if let url = URL(string: "url string") {
let config = SFSafariViewController.Configuration()
config.entersReaderIfAvailable = true
let vc = SFSafariViewController(url: url, configuration: config)
present(vc, animated: true)
}
}
Adding few more details:
When I am inspecting the code got the below errors with the mobile app SFSafariViewCotroller and the required content is not loading, but it is working fine with mobile, desktop Safari browsers and not showing any errors. Refused to load {URL://_csrfRefresh=1} because it does not appear in the frame-ancestors directive of the Content Security Policy.
Sandbox access violation: Blocked a frame at {URL} from accessing a cross-origin frame. Ther being accessed is sandboxed and lacks the "allow-same-origin" flag
Here I am unable to attach the screenshot. So adding stackover link - https://stackoverflow.com/questions/67560540/ios-in-app-with-sfsafariviewcontroller-unable-to-load-another-host-in-iframe for reference
I am using the below code to load the URL in SFSafariViewControl
@IBAction func launchSafariVC(_ sender: Any) {
if let url = URL(string: "url string") {
let config = SFSafariViewController.Configuration()
config.entersReaderIfAvailable = true
let vc = SFSafariViewController(url: url, configuration: config)
present(vc, animated: true)
}
}