Hello, I would like to load local resources (images and JSON) in a WKWebView by defining a custom URL scheme and using WKURLSchemeHandler. I have a WKWebView that loads web content that will do an HTTP GET request on the URL scheme, which the WKWebView catches and returns an HTTP response along with the resource (in JSON) via my handler.This setup works when the website uses http, but fails when using https with the following error:[blocked] The page at [web page with https] was not allowed to display insecure content from [custom url scheme].I observed the error using Safari's development tool for viewing the loaded web content in a WKWebView.Safari seems to be blocking mixed content when a webpage is served over https. Is there a way to resolve this issue?
Search results for
file uri scheme
78,708 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Look at the Profile action in the scheme editor for whichever scheme you are profiling with. The Info tab has an Instrument setting that should be set to Ask on Launch if you want to be able to select a different template when Instruments is launched by Xcode.As for your crash, please file a radar with more precise reproduction steps, device info, etc... If you can include the crash report for the app as well, that might prove useful.
Topic:
Developer Tools & Services
SubTopic:
Instruments
Tags:
Hi folks,for an iOS app, I am currently trying to run an automated iOS build from command line to generate the signed .ipa file.What the command line does, is:xcodebuild -xcconfig ../../buildSettings.xcconfig -scheme ProjectName -configuration Release -archivePath ../../build/ProjectName.xcarchive archive xcrun xcodebuild -exportArchive -exportOptionsPlist ../../exportPlist.plist -archivePath ../../build/ProjectName.xcarchive -exportPath ../../buildThe is that the XCode project is missing any scheme which is needed for the build with xcodebuild. This is because the xcodeproj is automatically generated by the cordova framework command line tools.I found out that XCode automatically generates new scheme files when the project is opened with XCode. What I did not find is any command line tool options to create that scheme. I think to open XCode from the command line and kill it again before building the project is a workaround and I would rather prefer a clean solutio
Was suffering a very similar problem to lyssophobe, was partway through installing the 10.11.1 beta. Was also seeing LaunchServices: Scheme mapping file does not exist, creating file in the logs. Deleting everything in /var/folders/ worked. Thank you lyssophobe for mentioning this.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I had tried to open Health app from my app using url scheme health. It was working with iOS 10 beta simulator but whnw i tried with real device with iOS 10 beta it's not working. Is there any other way to open a health app from other apps?
Additional info: I discovered that this is not just an issue with Xcode cloud, I can reproduce by just trying to run the testing target from the command-line locally, with xcodebuild -scheme (XCTest-scheme-name) test I get the same error shown above, which does not occur when I run the Test action from the IDE. In this case it's looking for the test file in the Debug .app build in derived data - and the file is actually there. Any suggestions? Is this a code-signing issue?
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I have checked that my scheme is shared and I do in fact have the scheme in my xcode project. But whenever I try to run Xcode cloud, it fails with the message that A scheme named 'MyAppScheme' does not exist in MyAppProject.xcodeproj Any tips on what I could be doing wrong?
I have a question about the amount of trust I should have in the team_id for an executable. I've been looking at the signing_id and team_id values in Apple's endpoint es_process_t, and almost all code follows the reverse naming scheme for their team_id. They have names like: com.getdropbox.dropbox com.microsoft.teams.helper com.apple.mdworker_shared com.apple.spctl But Google (at least) violates this reverse DNS pattern when signing many of their binaries. They have team IDs such as ksfetch GoogleSoftwareUpdateDaemon crashpad_handler Should I not trust the TLD (e.g., com.apple or com.microsoft) for the team ID? For example, could Google (or a malicious organization) sign their binary com.microsoft.ksfetch making me think it came from Microsoft?
I assume the .sh file extension is suppressed by default in the UI? Also, check file perm on the script is correct and its added to the target that provides the scheme you are building against. The default shell here is 'zsh' and I can't imagine that 'sh' isn't also available.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I followed the article Recording and Replaying ARSession Data and want to Use a recorded session in an app. But when I edit scheme as instructed I didn't find the ARKit label.
I encountered a similar issue with Xcode 15 Beta and discovered a workaround that could be helpful. I noticed that the builds failed specifically for schemes with longer names and those located in longer file paths. By relocating my entire project to a shorter path, thereby reducing the absolute file path length, I was able to successfully build the project that was consistently failing before. I suspect there may be a correlation between the build failures and the length of scheme names and/or absolute file paths. If you're grappling with the same issue, giving these steps a shot might alleviate the problem. However, this could be a bug that Apple needs to address. Hope this helps!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I have a CI setup where one job builds xctestrun files for tests and another job that uses tem to actually run tests. The setup worked fine with XCode 14 on macOS 13. Now after switching to macOS 14 and XCode 15.0.1 xcodebuild doesn't want to run tests anymore: xcodebuild -destination 'generic/platform=iOS' -derivedDataPath DerivedData_Temporary/ -resultBundlePath './fastlane/test_output/APPName-iOS.xcresult' -testPlan 'APPName-Unit-All' -xctestrun 'DerivedData_Temporary/Build/Products/APPName_APPName-Unit-All_iphonesimulator17.0-arm64-x86_64.xctestrun' test-without-building throws an error xcodebuild: error: Failed to build workspace iOS with scheme APPName-iOS.: Scheme “APPName-iOS” does not have an associated test plan named “APPName-iOS-Unit-All” Almost the same command for macOS works perfectly fine. What does this error even mean? And how to fix it?
Hi guys. I still haven't solved this gpx issue completely. But I have found a temporary solution. First, I tried hablo's solution that mentioned above. And I could add custom gpx file when I ran my app. At this time, I can also add a new scheme or edit a scheme. I could change default location in Options menu. So, I changed default location to my custom gpx file. And then I rebooted my Mac. When I excuted my xcode file, I couldn't add my custom gpx file also. The default location I changed hadn't my custom gpx file on the list. But, I could change GPS when I ran my app. I can't write my mention fluently. But I want to share this solution for you guys who don't want to reboot every time for a custom gpx. Thank you. :)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I am using chrome tools but i would love to go back to safari but I am hoping there is a dark scheme in settings somewhere.
#EXT-X-MEDIA:NAME=eng-300,TYPE=AUDIO,LANGUAGE=eng”,GROUP-ID=audio,CODECS=mp4a.40.2,DEFAULT=YES,AUTOSELECT=YES,URI=300/2043 #EXT-X-MEDIA:NAME=eng-500,TYPE=AUDIO,LANGUAGE=eng”,GROUP-ID=audio,CODECS=mp4a.40.2,DEFAULT=NO,AUTOSELECT=YES,URI=500 These are Audio Streams are coming from Manifest Currently Player Showing like English,English so causing issue and for localisation also an issue from apple
Topic:
App & System Services
SubTopic:
Core OS
Tags: