Search results for

“file uri scheme”

81,711 results found

Post

Replies

Boosts

Views

Activity

Different Build Schemes -> Error: -Onone Swift optimization level to use previews
I have a sample SwiftUI iOS app. As shown in the screenshot below, my project has three configurations: Debug, MyDebug, Release. If I select the Debug or MyDebug scheme, I get a preview. But if I select the Release scheme, I get an error that says the following. ”***.app” needs -Onone Swift optimization level to use previews (current setting is -O) , where *** is the app name. It probably has nothing to do with the Preview error, but the Info.plist has a dictionary such that the key name is devMode, and the value is $(DEVMODE). And I have a user-defined setting as shown below. My ContentView has the following. import SwiftUI struct ContentView: View { @State private var state: String = var body: some View { VStack { Text(Hello, world!: (state)) } .onAppear { if let devMode = Bundle.main.object(forInfoDictionaryKey: devMode) as? String { print(Development mode: (devMode)) state = devMode } if let path = Bundle.main.path(forResource: Info, ofType: plist) { if let dict = NSDictionary(contentsO
5
0
410
Feb ’25
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
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 invalid_client on hitting REST API with iOS App authorizationCode & identityToken
Same error happen with me. I try to many methods and anything helped me. I read description about error invalid_client from Apple documentation . The client authentication failed, typically due to a mismatched or invalid client identifier, invalid client secret (expired token, malformed claims, or invalid signature), or mismatched or invalid redirect URI. Not helpful description.
Topic: App & System Services SubTopic: General Tags:
Jul ’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).
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
Different Build Schemes -> Error: -Onone Swift optimization level to use previews
I have a sample SwiftUI iOS app. As shown in the screenshot below, my project has three configurations: Debug, MyDebug, Release. If I select the Debug or MyDebug scheme, I get a preview. But if I select the Release scheme, I get an error that says the following. ”***.app” needs -Onone Swift optimization level to use previews (current setting is -O) , where *** is the app name. It probably has nothing to do with the Preview error, but the Info.plist has a dictionary such that the key name is devMode, and the value is $(DEVMODE). And I have a user-defined setting as shown below. My ContentView has the following. import SwiftUI struct ContentView: View { @State private var state: String = var body: some View { VStack { Text(Hello, world!: (state)) } .onAppear { if let devMode = Bundle.main.object(forInfoDictionaryKey: devMode) as? String { print(Development mode: (devMode)) state = devMode } if let path = Bundle.main.path(forResource: Info, ofType: plist) { if let dict = NSDictionary(contentsO
Replies
5
Boosts
0
Views
410
Activity
Feb ’25
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
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
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
Reply to How to Deep Link down four levels in System Settings from an App?
Using URL schemes as you described to access settings is not supported API and may break in a future iOS release. The only way to access any settings content is through openSettingsURLString to open your app's page within Settings.For your specific needs regarding accessibility, please file an enhancement request detailing your use case.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’18
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 invalid_client on hitting REST API with iOS App authorizationCode & identityToken
Same error happen with me. I try to many methods and anything helped me. I read description about error invalid_client from Apple documentation . The client authentication failed, typically due to a mismatched or invalid client identifier, invalid client secret (expired token, malformed claims, or invalid signature), or mismatched or invalid redirect URI. Not helpful description.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’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