Search results for

“file uri scheme”

84,487 results found

Post

Replies

Boosts

Views

Activity

Reply to Trying to load a cr2 file
iOS is case sensitive..CR2 is not the same as .cr2, .Cr2, .cR2, etc.Be sure to match the file name case with the image name used in your code. Might want to get into the habit of only/always using lower case, as an example, just to avoid such issues in the future. Whichever scheme you adopt, be consistent.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’17
Reply to Run Terminal Command in Xcode
Yes, I tried doing that. Both through Build Phases and under Schemes by creating Post-Run/Post-Build Scripts. Neither of the tries worked for me.Anyways, I think this will not work as I will have to change the CMake for the project to access the shared object file to run even through the terminal. Thank you so much for taking time out and replying to my issue.RegardsJayam Patel
Feb ’18
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
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
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
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 Device denied the launch request error
I fixed this by going to Product-Scheme-Edit scheme select RUN, I had arguments passed on launch check box ticked, but were empty, so unticked the box. hey presto, my app would run on simulator. Solved for me.
Replies
Boosts
Views
Activity
Mar ’21
Reply to On Xcode13.0,my Metal-app successfully run on independent or in Xcode-Instrument, but crash on debugging,why?
Hello Benjamin, the workaround I found is to disable GPU Frame Capture. Menu Product | Scheme | Edit Scheme. under the Options tab, set GPU Frame Capture to disabled Regards David
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode Cloud: A scheme named "x" does not exist in x.xcodeproj
Well, it happened for me after renaming the project. It is just a wrong setting in the Appstoreconnect Xcode Cloud tab. For me it was in the Actions Archive - IOS section, Scheme dropdown. I have selected the correct scheme and build succeeded.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode server bot not running test cases ?
I had a similar problem. The fix for me was making sure that the local branch was up to date with remote. It seemed that if I had unstaged changes to my schemes, xcode would skip the tests, or complain that the scheme could not be found. Best of luck!
Replies
Boosts
Views
Activity
Jul ’17
Reply to Trying to load a cr2 file
iOS is case sensitive..CR2 is not the same as .cr2, .Cr2, .cR2, etc.Be sure to match the file name case with the image name used in your code. Might want to get into the habit of only/always using lower case, as an example, just to avoid such issues in the future. Whichever scheme you adopt, be consistent.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’17
Reply to Run Terminal Command in Xcode
Yes, I tried doing that. Both through Build Phases and under Schemes by creating Post-Run/Post-Build Scripts. Neither of the tries worked for me.Anyways, I think this will not work as I will have to change the CMake for the project to access the shared object file to run even through the terminal. Thank you so much for taking time out and replying to my issue.RegardsJayam Patel
Replies
Boosts
Views
Activity
Feb ’18
Reply to Xcode 15.3 and iOS 17.4 generate a CPU spike when launching the app
I even do not get an error by the Thread Performance Checker but keeping the option enabled in Xcode 15.3 results in horrible performance of the app during the full utilization of the app (I'm making intensive use of background threads). The only option currently possible is deactivate this feature in Debug Scheme. (Filed bug report: FB13681777)
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Mar ’24
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
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 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
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
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
357
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