Search results for

“file uri scheme”

81,728 results found

Post

Replies

Boosts

Views

Activity

xcodebuild: error: Failed to build workspace iOS with scheme
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?
2
0
2.6k
Apr ’24
Reply to Xcode 15 build error: Showing Recent Messages Command ExtractAppIntentsMetadata failed with a nonzero exit code
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!
Jun ’23
(Expansion) Sheet isn't complying to color scheme
So...I lost most of the Lunch Card files to a factory reset. There was an issue with Disk Utility - it's a whole thing. But I've managed to recover most of the files. But there's something that isn't working anymore within the code. In SettingsView, where the color scheme (Appearance) picker is located, you choose between light, dark, and system default. But when calling the sheet for AddView in CardsView (using SheetInfo() from Info.swift), it just defaults to whatever the system is set at. When I previewed it, it was light mode when the app setting was dark. Thing is, before I lost all my files, it worked perfectly normal, and consumer versions reflected that. I recovered (and rewrote some of) SettingsView and AddView (thank goodness I showed the full code for AddView here). I may have missed something, so here's my code for both, plus ContentView, CardsView, and Info.swift. SettingsView.swift - https://developer.apple.com/forums/content/attachment/91ff1182-42d3-48b8-9f8d
0
0
736
Feb ’21
Reply to The customized GPX file for Xcode 16 cannot be selected.
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. :)
Jul ’25
Reply to How to Alter Audio tracks of default AvPlayer
#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:
Dec ’22
Reply to WebKit PushStateFilePathRestriction
This is due to a change in WebKit (https://github.com/WebKit/WebKit/commit/78a55cf3976ce0b4543df42b03c335c5b89d27dd) to match the HTML spec with regards to pushState and file: URLs: https://html.spec.whatwg.org/multipage/history.html#can-have-its-url-rewritten If targetURL's scheme is file, and targetURL and documentURL differ in their path component, then return false. (Differences in query and fragment are allowed for file: URLs.) So it's fine to use pushState with file: URLs to go from index.html to index.html#/dashboard, but it is not allowed to go from index.html to index.html/dashboard. Maybe your framework has an option to use hash-based URLs for routing? The other alternative would be to use a custom scheme to serve your content instead of file: URLs.
Topic: Safari & Web SubTopic: General Tags:
May ’23
iOS Simulators List - Naming Scheme
Hi everyone, I had a quick question regarding how the devices are named under iOS Simulators. Typically, I expect the naming scheme to look like:iPad 2 (9.0)iPad 2 (9.2)iPad Air (9.0)iPad Air (9.2)iPad Air 2 (9.0)iPad Air 2 (9.0)And so on, and then when it gets to iPhone:iPhone 4s (9.0)iPhone 4s (9.2)iPhone 5 (9.0)iPhone 5 (9.2)And so on. But what I'm seeing is the device type and then the device ID, so it looks like:iPhone 4s (3b1a......)iPhone 4s (5d3e......)I was wondering what would cause this. Is it a setting I can change ? Or is this happening because both devices are running the same iOS version so it does this to differentiate ? I ask because it doesn't seem to happen on my MacBook Pro but it is happening on my iMac. I tried reinstaling both Xcode and the simuators but this issue persists.
5
0
8.2k
Dec ’15
Reply to How to operate a image file
a URL can point at a local file (the scheme is 'file', so such URLs begin file://). For example, if you use NSOpenPanel on macOS to enable the user to select the file(s) to open, you'll get an array of URLs from the panel. See https://developer.apple.com/documentation/appkit/nsopenpanel. NSImage supports jpeg format input.
Topic: Programming Languages SubTopic: Swift Tags:
May ’23
Select Icon according to scheme in xcode 13
Hi guys, I'm a flutter developer on BTG Pactual digital. I was working in a solution to make our app as white-label. In this process, I had to make it select an icon set according to the selected scheme. Searching for a solution, all tips were speaking about Asset Catalog App Icon Set Name on Build Settings, which apparently isn't available on xcode > 13 anymore. After reading the Xcode 13's release notes I think that the Primary Icon Set Name is like this previous one. But, it wasted a lot of my time, because the icon preview isn't gotten according to the icon setted on this new variable. Take a look at this sample: As you can see, the icon preview is equal for all of them, but both the EqiAppIcon and NectonAppIcon has different icon images. Have I forgot some thing?
1
0
881
Jan ’22
Custom URL Scheme no working on Safari - Monterey
Hi. In Monterey beta 5 (the same was observed in previous betas) our application is not launched from Safari browser. The Bundle URL is properly registered in Info.plist (this is working OK in previous OS versions and also it is working ok in Monterey using other browser) The custom URL is registered in this way CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName NNNN CFBundleURLSchemes NNNN NNNN represents out custom url scheme I didn't find any reference about some change on this API on Monterey (https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) Thanks
2
0
2.0k
Aug ’21
Maps URL Scheme
I have reviewed this document: https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html.It says:To perform a search, supply a properly encoded URL string as the value of the q parameter. For example:http://maps.apple.com/?q=Mexican+RestaurantHowever, I'm wondering if there are certain keywords that I can enter for the q parameter. What I'm trying to do is display the user's home address. I was hoping that if I ended the URL with ?q=Home it would accomplish what I want, but it just pulls up a Home Depot from another state.Does anyone know of a way to accomplish this? I'm working on the premise that the user has selected their contact card under My Info in the Contacts app, that they have programmed their home address into the contact, and that Maps is able to read that (if I manually type in Home into the search field in Maps, it does suggest my home address as a result).
0
0
3.8k
Sep ’17
Reply to DocC documentation warnings as errors
Xcode has an Other DocC Flags build setting—for additional flags to pass to DocC—that you can specify either in the build settings of your Xcode project or on the command line (as OTHER_DOCC_FLAGS). On the command line you can either override a build setting by directly specifying it as a key-value pair: xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' OTHER_DOCC_FLAGS='--warnings-as-errors' or you can specify any number of build settings in an xcconfig file and pass that file for the -xcconfig command line option: # create a 'xcconfig' file echo OTHER_DOCC_FLAGS = --warnings-as-errors > MyBuildSettings.xcconfig # pass it to xcodebuild xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' -xcconfig MyBuildSettings.xcconfig
Mar ’25
Reply to SiriKit stopped using Siri Dialog prompts (iOS13.1)
To reiterate the information @jeffhunterx received from our SiriKit engineering team, please consider the following things to address this issue in your app:Localize your intent definition file to all languages that your app supportsEnsure that your Xcode project identifies localizations by the ISO 639-1 language identifier scheme (additional information on the schemes). Older Xcode projects may use a different language identification scheme and should be updated.If your app has not yet been localized, ensure that the selected Siri language in Settings matches the CFBundleDevelopmentRegion of your Xcode project, and the value of this key is in ISO 639-1 format
Topic: App & System Services SubTopic: General Tags:
Sep ’19
xcodebuild: error: Failed to build workspace iOS with scheme
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?
Replies
2
Boosts
0
Views
2.6k
Activity
Apr ’24
Reply to Xcode 15 build error: Showing Recent Messages Command ExtractAppIntentsMetadata failed with a nonzero exit code
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!
Replies
Boosts
Views
Activity
Jun ’23
(Expansion) Sheet isn't complying to color scheme
So...I lost most of the Lunch Card files to a factory reset. There was an issue with Disk Utility - it's a whole thing. But I've managed to recover most of the files. But there's something that isn't working anymore within the code. In SettingsView, where the color scheme (Appearance) picker is located, you choose between light, dark, and system default. But when calling the sheet for AddView in CardsView (using SheetInfo() from Info.swift), it just defaults to whatever the system is set at. When I previewed it, it was light mode when the app setting was dark. Thing is, before I lost all my files, it worked perfectly normal, and consumer versions reflected that. I recovered (and rewrote some of) SettingsView and AddView (thank goodness I showed the full code for AddView here). I may have missed something, so here's my code for both, plus ContentView, CardsView, and Info.swift. SettingsView.swift - https://developer.apple.com/forums/content/attachment/91ff1182-42d3-48b8-9f8d
Replies
0
Boosts
0
Views
736
Activity
Feb ’21
Reply to The customized GPX file for Xcode 16 cannot be selected.
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. :)
Replies
Boosts
Views
Activity
Jul ’25
Reply to How to Alter Audio tracks of default AvPlayer
#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:
Replies
Boosts
Views
Activity
Dec ’22
Reply to WebKit PushStateFilePathRestriction
This is due to a change in WebKit (https://github.com/WebKit/WebKit/commit/78a55cf3976ce0b4543df42b03c335c5b89d27dd) to match the HTML spec with regards to pushState and file: URLs: https://html.spec.whatwg.org/multipage/history.html#can-have-its-url-rewritten If targetURL's scheme is file, and targetURL and documentURL differ in their path component, then return false. (Differences in query and fragment are allowed for file: URLs.) So it's fine to use pushState with file: URLs to go from index.html to index.html#/dashboard, but it is not allowed to go from index.html to index.html/dashboard. Maybe your framework has an option to use hash-based URLs for routing? The other alternative would be to use a custom scheme to serve your content instead of file: URLs.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’23
iOS Simulators List - Naming Scheme
Hi everyone, I had a quick question regarding how the devices are named under iOS Simulators. Typically, I expect the naming scheme to look like:iPad 2 (9.0)iPad 2 (9.2)iPad Air (9.0)iPad Air (9.2)iPad Air 2 (9.0)iPad Air 2 (9.0)And so on, and then when it gets to iPhone:iPhone 4s (9.0)iPhone 4s (9.2)iPhone 5 (9.0)iPhone 5 (9.2)And so on. But what I'm seeing is the device type and then the device ID, so it looks like:iPhone 4s (3b1a......)iPhone 4s (5d3e......)I was wondering what would cause this. Is it a setting I can change ? Or is this happening because both devices are running the same iOS version so it does this to differentiate ? I ask because it doesn't seem to happen on my MacBook Pro but it is happening on my iMac. I tried reinstaling both Xcode and the simuators but this issue persists.
Replies
5
Boosts
0
Views
8.2k
Activity
Dec ’15
Reply to How to operate a image file
a URL can point at a local file (the scheme is 'file', so such URLs begin file://). For example, if you use NSOpenPanel on macOS to enable the user to select the file(s) to open, you'll get an array of URLs from the panel. See https://developer.apple.com/documentation/appkit/nsopenpanel. NSImage supports jpeg format input.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’23
Select Icon according to scheme in xcode 13
Hi guys, I'm a flutter developer on BTG Pactual digital. I was working in a solution to make our app as white-label. In this process, I had to make it select an icon set according to the selected scheme. Searching for a solution, all tips were speaking about Asset Catalog App Icon Set Name on Build Settings, which apparently isn't available on xcode > 13 anymore. After reading the Xcode 13's release notes I think that the Primary Icon Set Name is like this previous one. But, it wasted a lot of my time, because the icon preview isn't gotten according to the icon setted on this new variable. Take a look at this sample: As you can see, the icon preview is equal for all of them, but both the EqiAppIcon and NectonAppIcon has different icon images. Have I forgot some thing?
Replies
1
Boosts
0
Views
881
Activity
Jan ’22
Reply to UIActivityViewController
I've looked at it before but it does not explain it very well and it doesn't make any sense is there any way i can share a file with a url scheme attached so I can access that URL when the user opens it?
Replies
Boosts
Views
Activity
Aug ’18
Custom URL Scheme no working on Safari - Monterey
Hi. In Monterey beta 5 (the same was observed in previous betas) our application is not launched from Safari browser. The Bundle URL is properly registered in Info.plist (this is working OK in previous OS versions and also it is working ok in Monterey using other browser) The custom URL is registered in this way CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLName NNNN CFBundleURLSchemes NNNN NNNN represents out custom url scheme I didn't find any reference about some change on this API on Monterey (https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app) Thanks
Replies
2
Boosts
0
Views
2.0k
Activity
Aug ’21
Maps URL Scheme
I have reviewed this document: https://developer.apple.com/library/content/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html.It says:To perform a search, supply a properly encoded URL string as the value of the q parameter. For example:http://maps.apple.com/?q=Mexican+RestaurantHowever, I'm wondering if there are certain keywords that I can enter for the q parameter. What I'm trying to do is display the user's home address. I was hoping that if I ended the URL with ?q=Home it would accomplish what I want, but it just pulls up a Home Depot from another state.Does anyone know of a way to accomplish this? I'm working on the premise that the user has selected their contact card under My Info in the Contacts app, that they have programmed their home address into the contact, and that Maps is able to read that (if I manually type in Home into the search field in Maps, it does suggest my home address as a result).
Replies
0
Boosts
0
Views
3.8k
Activity
Sep ’17
Reply to DocC documentation warnings as errors
Xcode has an Other DocC Flags build setting—for additional flags to pass to DocC—that you can specify either in the build settings of your Xcode project or on the command line (as OTHER_DOCC_FLAGS). On the command line you can either override a build setting by directly specifying it as a key-value pair: xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' OTHER_DOCC_FLAGS='--warnings-as-errors' or you can specify any number of build settings in an xcconfig file and pass that file for the -xcconfig command line option: # create a 'xcconfig' file echo OTHER_DOCC_FLAGS = --warnings-as-errors > MyBuildSettings.xcconfig # pass it to xcodebuild xcodebuild docbuild -scheme NameOfYourScheme -destination 'platform=macOS' -xcconfig MyBuildSettings.xcconfig
Replies
Boosts
Views
Activity
Mar ’25
Reply to SiriKit stopped using Siri Dialog prompts (iOS13.1)
To reiterate the information @jeffhunterx received from our SiriKit engineering team, please consider the following things to address this issue in your app:Localize your intent definition file to all languages that your app supportsEnsure that your Xcode project identifies localizations by the ISO 639-1 language identifier scheme (additional information on the schemes). Older Xcode projects may use a different language identification scheme and should be updated.If your app has not yet been localized, ensure that the selected Siri language in Settings matches the CFBundleDevelopmentRegion of your Xcode project, and the value of this key is in ISO 639-1 format
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’19
Xcode Beta 2 crashing when editing 'Test' settings in scheme
When bringing up the 'Test' panel in a project's scheme, then closing the scheme editor or switching to another panel (e.g. 'Build'), Xcode will crashHas consistently occurred in all my projects and in new single-view iOS app project.Filed rdar://27267460No workaround to my knowledge.
Replies
1
Boosts
0
Views
386
Activity
Jul ’16