Search results for

“file uri scheme”

81,708 results found

Post

Replies

Boosts

Views

Activity

Losing texture when converting DAE files to SCN files
I have an app where I have a bunch of dae files stored online. They're optimized for iOS usingxcrun scntool --convert file.dae --format c3d --output file_optimized.dae --force-y-upI download both the model and the textures to have the same file structure as on my mac. Which ends up like this:modelName/ model/ model.dae textures/ textures.png (All required texture files are in here)However, when I load them into my iOS app, they show up fully white with the following error:[SceneKit] Error: Failed loading : <C3DImage 0x1c00f6900 src:file:///path/to/local/file/on/my/mac/../textures/diffuse.png [0.000000x0.000000]>The files work fine on my mac, both in Preview and in Xcode, and they show the URI to the textures like this:../textures/diffuse.pngHow would I fix this?
2
0
3.2k
Dec ’17
unable to run a single unit test (or set of tests) against a scheme
i have a project P living in a workspace with a number of other projects.project P has a test target PT, and that target depends upon resources created by project FR.in the workspace, i have an .xcscheme that builds the dependency FR prior to running target PT properly.and thus, when i perform Cmd-U (Test) for the currently selected .xcscheme PS that corresponds to project P, everything works fine, and the project builds and the tests run.however, if i have updated my source, performed a clean, and then attempt to run a given test by either clicking on its diamond test icon in the source, or by going into the test navigator and choosing either the individual test or the class containing the test to run all tests in it, or even the entire test suite and hitting the run test icon, or right-clicking and performing Test testPX or Run testCasePX or Run PT, the scheme is ignored. it instead only attempts to build the target as depended upon by the test-target.being as that this is part of a workspace, crea
0
0
339
Jan ’16
Reply to Xcode 13 and Linux Makefile
Xcode supports this really nicely but setting it up is a bit tricky. I took a run at this today and was quite happy with the results. Here’s what I did: On macOS 12.1, I started with a Hello directory that contains my source file and a make file: % find hello hello hello/hello.c hello/Makefile % cat hello/hello.c #include int main(int argc, char ** argv) { printf(Hello Cruel World!n); } % cat hello/Makefile hello: hello.c cc -o hello -g hello.c IMPORTANT The second line in hello/Makefile starts with a tab. I run Xcode 13.2.1 and chose File > New > Project and selected Other > External Build System. I named it XHello, just to keep things clear. I closed that project window. This left me with the following structure on disk: % find XHello XHello XHello/XHello.xcodeproj … lots of Xcode goo … I used the Finder to move XHello.xcodeproj to my hello directory. I opened that in Xcode. I chose Product > Build to check that it actually builds. I chose Product > Scheme
Jan ’22
Reply to Custom url with notarized package installer
This is not clear to me. You say that it is happening because the webview is trying to render the custom URL scheme?Why this is not happening if the application is used without the installer?I made a test calling the custom url scheme from safari and it says 'Safari can't open specified address' because it does not recognize the custom protocol. (In a mac with the working custom url scheme Safari is able to open the address)
Topic: Code Signing SubTopic: General Tags:
Nov ’19
Got a rejection for piracy storefront and itms-services URL scheme
Hello, Guys,I have two games received the same rejection but cannot figure out what does the review team mean and how to fix these issues.Guideline 2.3 - Performance - Accurate MetadataWe noticed that your app's metadata includes the following information, which is not relevant to the app's content and functionality.Specifically, this app contains references to an app piracy storefront.Guideline 2.3.1 - PerformanceWe discovered that your app contains hidden features. Specifically, this app contains references to an app piracy storefront.Guideline 2.5.2 - Performance - Software RequirementsDuring review, your app installed or launched executable code, which is not permitted on the App Store. Specifically, your app uses the itms-services URL scheme to install an app.Please note that while educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code, such code may not be used for other purposes and such apps must make the source code
5
0
4.2k
Sep ’17
Open specific viewcontroller by using URL scheme
Just wondering is there is any way to open a viewcontroller by using URL scheme.This is my class:class SwishManager: NSObject, URLSessionDelegate{ . . . . . func schemeAvailable(token: String){ let notAllowedCharactersSet = CharacterSet(charactersIn: !*'();:@&=+$,/?%#[]) let allowedCharactersSet: CharacterSet = notAllowedCharactersSet.inverted let callbackURLStr = helpie:// let encodedCallbackURLStr = callbackURLStr.addingPercentEncoding(withAllowedCharacters: allowedCharactersSet) let swishURLStr = swish://paymentrequest?token=(token)&callbackurl=(encodedCallbackURLStr ?? ) let swishURL = URL(string: swishURLStr) if let anURL = swishURL { if UIApplication.shared.canOpenURL(anURL) { print(app has been installed) if UIApplication.shared.canOpenURL(anURL) { UIApplication.shared.open(swishURL!, options: [:], completionHandler: { (success) in self.confirmpayment() }) } else { print(Failed) } } else { print(app has been installed, NOT!) } } } . . . . . . }What I want to do is when user going back from the
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
1.2k
Nov ’18
Reply to Unit test not working on Xcode 14 RC
In my case, this happened when I had an environment variable set manually for the project via the scheme. What caused it was an accidentally added environment variable without a name or value. (Check for it under Product > Scheme > (pick a scheme), select Run from left nav, and inspect the manually configured environment variables. This won't be the cause for everyone, but the empty name/value pair for the env var definitely is a cause for this error (easily reproducible)
May ’23
Reply to Can't change time in Xcode Simulator
I have same issue while using fastlane snapshot. Based on Matt_PeakRidge's answer, here is my workaround. As my app only works with iOS 16 I couldn't use iOS 15.5 simulator. But iOS 16.0 worked so: Install iOS 16.0 simulator from Xcode Set deployment target to iOS 16.0 in Test scheme. In Snapfile file add ios_version(16.0).
Dec ’22
Deep Link to Files app
Is there a system deep link URI to the built in files app? I would like to direct users to my apps location in the files app. For example files://myApp The only exposed deep links for system I can find are the ones for mail, sms, FaceTime etc. Thank you (tag used for post was because I couldn’t find a deep link tag)
3
0
1.1k
May ’24
Reply to Universal Links in Web Markup
Well there is always smart app banners. They now want you to use the universal link for that but it has the App Store ID (as do some of the other meta schemes) but that doesn't give you any way to open the app. The smart app banner open/download logic is all controlled by Apple. The best the rest of us can do with an App Store ID is send someone to the download page.While I'm sure Apple wants to move away from the custom URL schemes. They are still acknowledging that the other schemes like Twitter cards and Applinks use custom URL schemes. I think the custom schemes are ok for the time being, especially if you support pre 9. I say that because even the new web markup validation tool acknowledges them:https://search.developer.apple.com/appsearch-validation-tool
Topic: App & System Services SubTopic: General Tags:
Sep ’15
Reply to On iOS 26, HLS alternate audio track selection behaves inconsistently
Update — Workaround found After further investigation I have found a workaround that resolves the inconsistent track switching behaviour described above. Observation I noticed that changing the order of EXT-X-MEDIA audio entries in the manifest produced different results. Specifically, when the DEFAULT=YES track is listed first, switching behaviour is unreliable. When the DEFAULT=YES track is placed last, switching back to the default language works correctly. Workaround Reorder the EXT-X-MEDIA audio entries so that the DEFAULT=YES rendition appears last in the manifest: #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=de,NAME=Deutsch,AUTOSELECT=YES,DEFAULT=NO,CHANNELS=2,URI=audio_DEU.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=fr,NAME=Francais,AUTOSELECT=YES,DEFAULT=NO,CHANNELS=2,URI=audio_FRA.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=en,NAME=English,AUTOSELECT=YES,DEFAULT=YES,CHANNELS=2,URI=audio_ENG.m3u8 In our case the manifest is gener
Topic: Media Technologies SubTopic: Streaming Tags:
2w
Losing texture when converting DAE files to SCN files
I have an app where I have a bunch of dae files stored online. They're optimized for iOS usingxcrun scntool --convert file.dae --format c3d --output file_optimized.dae --force-y-upI download both the model and the textures to have the same file structure as on my mac. Which ends up like this:modelName/ model/ model.dae textures/ textures.png (All required texture files are in here)However, when I load them into my iOS app, they show up fully white with the following error:[SceneKit] Error: Failed loading : <C3DImage 0x1c00f6900 src:file:///path/to/local/file/on/my/mac/../textures/diffuse.png [0.000000x0.000000]>The files work fine on my mac, both in Preview and in Xcode, and they show the URI to the textures like this:../textures/diffuse.pngHow would I fix this?
Replies
2
Boosts
0
Views
3.2k
Activity
Dec ’17
unable to run a single unit test (or set of tests) against a scheme
i have a project P living in a workspace with a number of other projects.project P has a test target PT, and that target depends upon resources created by project FR.in the workspace, i have an .xcscheme that builds the dependency FR prior to running target PT properly.and thus, when i perform Cmd-U (Test) for the currently selected .xcscheme PS that corresponds to project P, everything works fine, and the project builds and the tests run.however, if i have updated my source, performed a clean, and then attempt to run a given test by either clicking on its diamond test icon in the source, or by going into the test navigator and choosing either the individual test or the class containing the test to run all tests in it, or even the entire test suite and hitting the run test icon, or right-clicking and performing Test testPX or Run testCasePX or Run PT, the scheme is ignored. it instead only attempts to build the target as depended upon by the test-target.being as that this is part of a workspace, crea
Replies
0
Boosts
0
Views
339
Activity
Jan ’16
Reply to Xcode 13 and Linux Makefile
Xcode supports this really nicely but setting it up is a bit tricky. I took a run at this today and was quite happy with the results. Here’s what I did: On macOS 12.1, I started with a Hello directory that contains my source file and a make file: % find hello hello hello/hello.c hello/Makefile % cat hello/hello.c #include int main(int argc, char ** argv) { printf(Hello Cruel World!n); } % cat hello/Makefile hello: hello.c cc -o hello -g hello.c IMPORTANT The second line in hello/Makefile starts with a tab. I run Xcode 13.2.1 and chose File > New > Project and selected Other > External Build System. I named it XHello, just to keep things clear. I closed that project window. This left me with the following structure on disk: % find XHello XHello XHello/XHello.xcodeproj … lots of Xcode goo … I used the Finder to move XHello.xcodeproj to my hello directory. I opened that in Xcode. I chose Product > Build to check that it actually builds. I chose Product > Scheme
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode creating generic archive
This may seem like a silly question, but did you check you have the correct scheme selected? It's easy to forget to switch back to the app target's scheme before you do the archive, especially when the project is a complex combination of targets.
Replies
Boosts
Views
Activity
Aug ’16
Reply to Custom url with notarized package installer
This is not clear to me. You say that it is happening because the webview is trying to render the custom URL scheme?Why this is not happening if the application is used without the installer?I made a test calling the custom url scheme from safari and it says 'Safari can't open specified address' because it does not recognize the custom protocol. (In a mac with the working custom url scheme Safari is able to open the address)
Topic: Code Signing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’19
Got a rejection for piracy storefront and itms-services URL scheme
Hello, Guys,I have two games received the same rejection but cannot figure out what does the review team mean and how to fix these issues.Guideline 2.3 - Performance - Accurate MetadataWe noticed that your app's metadata includes the following information, which is not relevant to the app's content and functionality.Specifically, this app contains references to an app piracy storefront.Guideline 2.3.1 - PerformanceWe discovered that your app contains hidden features. Specifically, this app contains references to an app piracy storefront.Guideline 2.5.2 - Performance - Software RequirementsDuring review, your app installed or launched executable code, which is not permitted on the App Store. Specifically, your app uses the itms-services URL scheme to install an app.Please note that while educational apps designed to teach, develop, or allow students to test executable code may, in limited circumstances, download code, such code may not be used for other purposes and such apps must make the source code
Replies
5
Boosts
0
Views
4.2k
Activity
Sep ’17
Setting's Custom URL Scheme on iOS 10?
Replies
0
Boosts
0
Views
350
Activity
Jul ’16
Open specific viewcontroller by using URL scheme
Just wondering is there is any way to open a viewcontroller by using URL scheme.This is my class:class SwishManager: NSObject, URLSessionDelegate{ . . . . . func schemeAvailable(token: String){ let notAllowedCharactersSet = CharacterSet(charactersIn: !*'();:@&=+$,/?%#[]) let allowedCharactersSet: CharacterSet = notAllowedCharactersSet.inverted let callbackURLStr = helpie:// let encodedCallbackURLStr = callbackURLStr.addingPercentEncoding(withAllowedCharacters: allowedCharactersSet) let swishURLStr = swish://paymentrequest?token=(token)&callbackurl=(encodedCallbackURLStr ?? ) let swishURL = URL(string: swishURLStr) if let anURL = swishURL { if UIApplication.shared.canOpenURL(anURL) { print(app has been installed) if UIApplication.shared.canOpenURL(anURL) { UIApplication.shared.open(swishURL!, options: [:], completionHandler: { (success) in self.confirmpayment() }) } else { print(Failed) } } else { print(app has been installed, NOT!) } } } . . . . . . }What I want to do is when user going back from the
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
1.2k
Activity
Nov ’18
Reply to Unit test not working on Xcode 14 RC
In my case, this happened when I had an environment variable set manually for the project via the scheme. What caused it was an accidentally added environment variable without a name or value. (Check for it under Product > Scheme > (pick a scheme), select Run from left nav, and inspect the manually configured environment variables. This won't be the cause for everyone, but the empty name/value pair for the env var definitely is a cause for this error (easily reproducible)
Replies
Boosts
Views
Activity
May ’23
Reply to Application Driven to Crash Only For First Launch
That's what I did (in fact direct aceess to scheme edit for the app by clicking on the left of the present scheme).But, in XCode 9.4, no such Launch application without state restoration option.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Jul ’18
Reply to Xcode 12.0.1 "No such module"
Hey, try this out: Go to Product Schemes New Scheme... Select the name of your Cocoapod then click OK. After you do this, build the project (click cmd + B) This worked for me.
Replies
Boosts
Views
Activity
May ’21
Reply to Can't change time in Xcode Simulator
I have same issue while using fastlane snapshot. Based on Matt_PeakRidge's answer, here is my workaround. As my app only works with iOS 16 I couldn't use iOS 15.5 simulator. But iOS 16.0 worked so: Install iOS 16.0 simulator from Xcode Set deployment target to iOS 16.0 in Test scheme. In Snapfile file add ios_version(16.0).
Replies
Boosts
Views
Activity
Dec ’22
Deep Link to Files app
Is there a system deep link URI to the built in files app? I would like to direct users to my apps location in the files app. For example files://myApp The only exposed deep links for system I can find are the ones for mail, sms, FaceTime etc. Thank you (tag used for post was because I couldn’t find a deep link tag)
Replies
3
Boosts
0
Views
1.1k
Activity
May ’24
Reply to Universal Links in Web Markup
Well there is always smart app banners. They now want you to use the universal link for that but it has the App Store ID (as do some of the other meta schemes) but that doesn't give you any way to open the app. The smart app banner open/download logic is all controlled by Apple. The best the rest of us can do with an App Store ID is send someone to the download page.While I'm sure Apple wants to move away from the custom URL schemes. They are still acknowledging that the other schemes like Twitter cards and Applinks use custom URL schemes. I think the custom schemes are ok for the time being, especially if you support pre 9. I say that because even the new web markup validation tool acknowledges them:https://search.developer.apple.com/appsearch-validation-tool
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to On iOS 26, HLS alternate audio track selection behaves inconsistently
Update — Workaround found After further investigation I have found a workaround that resolves the inconsistent track switching behaviour described above. Observation I noticed that changing the order of EXT-X-MEDIA audio entries in the manifest produced different results. Specifically, when the DEFAULT=YES track is listed first, switching behaviour is unreliable. When the DEFAULT=YES track is placed last, switching back to the default language works correctly. Workaround Reorder the EXT-X-MEDIA audio entries so that the DEFAULT=YES rendition appears last in the manifest: #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=de,NAME=Deutsch,AUTOSELECT=YES,DEFAULT=NO,CHANNELS=2,URI=audio_DEU.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=fr,NAME=Francais,AUTOSELECT=YES,DEFAULT=NO,CHANNELS=2,URI=audio_FRA.m3u8 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=program_audio,LANGUAGE=en,NAME=English,AUTOSELECT=YES,DEFAULT=YES,CHANNELS=2,URI=audio_ENG.m3u8 In our case the manifest is gener
Topic: Media Technologies SubTopic: Streaming Tags:
Replies
Boosts
Views
Activity
2w