Search results for

“file uri scheme”

81,726 results found

Post

Replies

Boosts

Views

Activity

[regression] xcodebuild 15 fails to find destination in scheme
Working on this project. https://github.com/sebsto/amplify-ios-getting-started The project has a scheme named getting started. Using Xcode 14.3.1, I can use this command to build the project: xcodebuild build -workspace getting started.xcworkspace -scheme getting started -configuration Release But when using Xcode 15, it fails with the following error message: Command line invocation: /Applications/Xcode-15.app/Contents/Developer/usr/bin/xcodebuild build -workspace getting started.xcworkspace -scheme getting started -configuration Release User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Resolve Package Graph Resolved source packages: Starscream: https://github.com/daltoniam/Starscream @ 4.0.4 AmplifyUtilsNotifications: https://github.com/aws-amplify/amplify-swift-utils-notifications.git @ 1.1.0 SQLite.swift: https://github.com/stephencelis/SQLite.swift.git @ 0.13.2 XMLCoder: https://github.com/MaxDesiatov/XMLCoder.git @ 0.17.1 AppSyncRealTimeClient: https://gith
1
0
7.6k
Oct ’23
SwiftUI preview not building for different scheme: error: no such module 'MyApp'
My preview scheme was working perfectly in my production scheme, so I duplicated it but when I try to build preview the new scheme shows me this error Compiling file failed: no such module 'MyApp' no such module 'Safes' ---------------------------------------- CompileDylibError: Failed to build NotificationCellView.swift Compiling failed: no such module 'Safes' /Users/amin/Library/Developer/Xcode/DerivedData/Parental_Control-axokgvhejpgnmeftompkijzbbsin/Build/Intermediates.noindex/Previews/Development/Intermediates.noindex/Parental Control.build/Development-iphonesimulator/Parental Control.build/Objects-normal/arm64/NotificationCellView.1.preview-thunk.swift:1:60: error: no such module 'Safes' @_private(sourceFile: NotificationCellView.swift) import Safes how can I fix this issue for breaking preview?
0
0
1.1k
Aug ’22
Reply to NSLinguisticTagger problem
What do you do if the scheme does not exist? https://stackoverflow.com/questions/48768919/device-vs-simulator-linguistic-schemes When testing on physical devices the console prints 3 schemes are available, none of which are the Lexical or Lemma scheme....
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Feb ’18
iOS9 using custom URL schemes to deep link
So I know Apple is pushing for the usage of universal links, but until we convert to them I would still like to support the deep linking of content to our app through a custom URL scheme. And as suggested I have already registered our apps scheme in the LSApplicationQueriesSchemes key of our Info.plist file. Our issue is specifically with devices running iOS9. If these users simply tap the Play in App button on one of our webpages within the Safari app, they are redirected to the AppStore and to our app's landing page, even though the app is already installed. But if the user taps and holds, they are then presented with a UIActionSheet that offers them the choice to either open the link through our app or copy the link. If they choose to open with our app, it performs the actions expected as devices running IOS8 and earlier. Can't we get this functionality without the need for the long press?Another oddity is if the user navigates to one of our webpages via the Chrome app and taps t
1
0
2.8k
Sep ’15
Is there anyway to view output from an Xcode scheme's build pre-action / verify it completed successfully?
I've got a custom run script build phase in my Xcode iOS project, however I want it to run before the items in the Target Dependencies section get built. So I added a Pre-Actions phase to the target's build scheme and pasted the contents there. However, during a build, there's no way to see if the stuff in the pre action is successful or not. It's possible to put echo statements into a run script build phase which is useful to print values such as file paths etc. but these don't work when part of a scheme pre action. Also if I deliberately put garbage into the scheme pre action, then I can see Xcode is still running the pre action, but as its full of garbage it should fail, but Xcode doesn't report any errors anywhere. So, is there any way to see and confirm if a scheme pre-action was successful or not, or to output logging statements from it to verify values its using are as expected?
0
0
647
Jun ’24
Reply to WKWebview not rendering .doc file but renders pdf/png/jpeg?
One possible workaround is to write the data into a file and then load the file URL but sometimes this is not a viable solution (e.g. client requirement that no data should be written unencrypted in the file system).Workaround without writing files on disk1. Use a custom scheme handlerWKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init]; id schemeHandler = ... [configuration setURLSchemeHandler:schemeHandler forURLScheme:@someCustomScheme]; WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration];2. Load the data with that custom scheme:[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL urlWithString:@someCustomScheme://name.rtf]]];3. In the scheme handler, provide the data in the protocol method:- (void)webView:(WKWebView *)webView startURLSchemeTask:(id)urlSchemeTask { NSData *data = ... NSURLResponse *workaroundResponse = [[NSURLResponse alloc] initWithURL:[NSURL urlWithSt
Topic: Programming Languages SubTopic: Swift Tags:
Mar ’20
Reply to Sign in with Apple missing email claim in the (JWT) identityToken
I've wasted weeks searching for true reason why I randomly fail to get email information. Following are the conclusions I came up after long suffering: You do not define scope and response_mode in the login uri(url which you would link to the button click event), you will get email in the id_token as JWT only once and this cannot be reverted unless you change the uri and add scope and response_mode first and delete the app you once signed in with 'Sign in with apple' in the appleid.apple.com manage page consequently. If you do not specify scope and response_mode, this will let you use GET method to redirect(or return) to your frontend and it will enable easy login feature just like other major service providers. However, you cannot use email(true email or anonymous email all together) to authorize your users later and your only option is to use sub values in the id_token. You define scope and reponse_mode in the login uri, you will get email in the id_token everytime. You can use th
Topic: App & System Services SubTopic: General Tags:
Apr ’22
Failed to build the scheme (When trying to use Canvas
Hi, I am running Xcode Beta Version 15.0 beta 3 (15A5195k) With my test Apps I am now getting the error Failed to Build the Scheme when trying to use the Canvas. The Apps all compile and run both in the Simulator and on an external device such as my iPhone, Error details below.. Any ideas would be helpful. Thanks.. Craig. == DATE: Friday, 7 July 2023 at 9:13:45 pm Australian Eastern Standard Time 2023-07-07T11:13:45Z == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme ”Ham Net” linker command failed with exit code 1 (use -v to see invocation) Link Ham Net (arm64): ld: Undefined symbols: unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.myFavourite.init : Swift.Bool, referenced from: Ham_Net.HamNetItems.myFavourite.init : Swift.Bool in AddNetView.o unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.netFrequency.init : Swift.String, referenced from: Ham_Net.HamNetItems.netFrequency.init : Swift.String in AddNetView.o un
3
0
2.1k
Jul ’23
Reply to The customized GPX file for Xcode 16 cannot be selected.
I think, Sequoia doesn't recognize the GPX-Files. If you add this file into your project scheme manually, it works. Just put the file name into the file: .xcsheme: and it will work. The .gpx musst be in your Xcode project, of course. If you don't know at which place in the .xcsceme file it hast to be put, you can put in Xcode some standard location (for example Honolulu), exit Xcode and replace Honolulu- sequence with the sequence above in the .xcscheme file. Best DM
Nov ’24
Reply to Fail to raise open file limit
This is the exact diagnostic given by Xcode. I am building a Single View App project. I didn't use an external library. I am doing some demo, but this error occurs.failed to raise open file limit----------------------------------------SchemeBuildError: Failed to build the scheme Memorizefailed to raise open file limitBuild system information:error: failed to raise open file limit--------------------------------------Solved. Just a system setting issue
May ’20
[regression] xcodebuild 15 fails to find destination in scheme
Working on this project. https://github.com/sebsto/amplify-ios-getting-started The project has a scheme named getting started. Using Xcode 14.3.1, I can use this command to build the project: xcodebuild build -workspace getting started.xcworkspace -scheme getting started -configuration Release But when using Xcode 15, it fails with the following error message: Command line invocation: /Applications/Xcode-15.app/Contents/Developer/usr/bin/xcodebuild build -workspace getting started.xcworkspace -scheme getting started -configuration Release User defaults from command line: IDEPackageSupportUseBuiltinSCM = YES Resolve Package Graph Resolved source packages: Starscream: https://github.com/daltoniam/Starscream @ 4.0.4 AmplifyUtilsNotifications: https://github.com/aws-amplify/amplify-swift-utils-notifications.git @ 1.1.0 SQLite.swift: https://github.com/stephencelis/SQLite.swift.git @ 0.13.2 XMLCoder: https://github.com/MaxDesiatov/XMLCoder.git @ 0.17.1 AppSyncRealTimeClient: https://gith
Replies
1
Boosts
0
Views
7.6k
Activity
Oct ’23
Reply to Cannot remove SCM
I still have a problem with connecting back to our Gitlab, is there any update on this? On appstore connect on xcode cloud tab I cannot select new SCM and I cannot create new application in Gitlab as I do not have redirect URI.
Replies
Boosts
Views
Activity
Jun ’23
SwiftUI preview not building for different scheme: error: no such module 'MyApp'
My preview scheme was working perfectly in my production scheme, so I duplicated it but when I try to build preview the new scheme shows me this error Compiling file failed: no such module 'MyApp' no such module 'Safes' ---------------------------------------- CompileDylibError: Failed to build NotificationCellView.swift Compiling failed: no such module 'Safes' /Users/amin/Library/Developer/Xcode/DerivedData/Parental_Control-axokgvhejpgnmeftompkijzbbsin/Build/Intermediates.noindex/Previews/Development/Intermediates.noindex/Parental Control.build/Development-iphonesimulator/Parental Control.build/Objects-normal/arm64/NotificationCellView.1.preview-thunk.swift:1:60: error: no such module 'Safes' @_private(sourceFile: NotificationCellView.swift) import Safes how can I fix this issue for breaking preview?
Replies
0
Boosts
0
Views
1.1k
Activity
Aug ’22
Reply to xcodeproj and Swift package localization
Please file feedback about the issue you’re running into. Note that you no longer need to generate an Xcode project from a Swift package; you can use$ cd path/to/SomePackage $ xcodebuild -scheme SomePackage to build it with Xcode, which includes support for Xcode’s resource file types.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’20
Reply to NSLinguisticTagger problem
What do you do if the scheme does not exist? https://stackoverflow.com/questions/48768919/device-vs-simulator-linguistic-schemes When testing on physical devices the console prints 3 schemes are available, none of which are the Lexical or Lemma scheme....
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Feb ’18
Xcode 12.1 crash when try to open manage schemes...
I am using xcworkspace, and every projects that I have the same issue while trying to open manage schemes You can find the crash report from text attachment below Crash report - https://developer.apple.com/forums/content/attachment/692b4adc-f5da-4f86-9066-7791814ac1eb
Replies
8
Boosts
0
Views
2.5k
Activity
Nov ’20
iOS9 using custom URL schemes to deep link
So I know Apple is pushing for the usage of universal links, but until we convert to them I would still like to support the deep linking of content to our app through a custom URL scheme. And as suggested I have already registered our apps scheme in the LSApplicationQueriesSchemes key of our Info.plist file. Our issue is specifically with devices running iOS9. If these users simply tap the Play in App button on one of our webpages within the Safari app, they are redirected to the AppStore and to our app's landing page, even though the app is already installed. But if the user taps and holds, they are then presented with a UIActionSheet that offers them the choice to either open the link through our app or copy the link. If they choose to open with our app, it performs the actions expected as devices running IOS8 and earlier. Can't we get this functionality without the need for the long press?Another oddity is if the user navigates to one of our webpages via the Chrome app and taps t
Replies
1
Boosts
0
Views
2.8k
Activity
Sep ’15
Reply to debug a C executable with arguments
You can specify arguments by editing the scheme. Product > Scheme > Edit Scheme. You want the Run action. There's an Arguments tab.
Replies
Boosts
Views
Activity
Aug ’16
Is there anyway to view output from an Xcode scheme's build pre-action / verify it completed successfully?
I've got a custom run script build phase in my Xcode iOS project, however I want it to run before the items in the Target Dependencies section get built. So I added a Pre-Actions phase to the target's build scheme and pasted the contents there. However, during a build, there's no way to see if the stuff in the pre action is successful or not. It's possible to put echo statements into a run script build phase which is useful to print values such as file paths etc. but these don't work when part of a scheme pre action. Also if I deliberately put garbage into the scheme pre action, then I can see Xcode is still running the pre action, but as its full of garbage it should fail, but Xcode doesn't report any errors anywhere. So, is there any way to see and confirm if a scheme pre-action was successful or not, or to output logging statements from it to verify values its using are as expected?
Replies
0
Boosts
0
Views
647
Activity
Jun ’24
Reply to WKWebview not rendering .doc file but renders pdf/png/jpeg?
One possible workaround is to write the data into a file and then load the file URL but sometimes this is not a viable solution (e.g. client requirement that no data should be written unencrypted in the file system).Workaround without writing files on disk1. Use a custom scheme handlerWKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init]; id schemeHandler = ... [configuration setURLSchemeHandler:schemeHandler forURLScheme:@someCustomScheme]; WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration];2. Load the data with that custom scheme:[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL urlWithString:@someCustomScheme://name.rtf]]];3. In the scheme handler, provide the data in the protocol method:- (void)webView:(WKWebView *)webView startURLSchemeTask:(id)urlSchemeTask { NSData *data = ... NSURLResponse *workaroundResponse = [[NSURLResponse alloc] initWithURL:[NSURL urlWithSt
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Mar ’20
Reply to Sign in with Apple missing email claim in the (JWT) identityToken
I've wasted weeks searching for true reason why I randomly fail to get email information. Following are the conclusions I came up after long suffering: You do not define scope and response_mode in the login uri(url which you would link to the button click event), you will get email in the id_token as JWT only once and this cannot be reverted unless you change the uri and add scope and response_mode first and delete the app you once signed in with 'Sign in with apple' in the appleid.apple.com manage page consequently. If you do not specify scope and response_mode, this will let you use GET method to redirect(or return) to your frontend and it will enable easy login feature just like other major service providers. However, you cannot use email(true email or anonymous email all together) to authorize your users later and your only option is to use sub values in the id_token. You define scope and reponse_mode in the login uri, you will get email in the id_token everytime. You can use th
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’22
Failed to build the scheme (When trying to use Canvas
Hi, I am running Xcode Beta Version 15.0 beta 3 (15A5195k) With my test Apps I am now getting the error Failed to Build the Scheme when trying to use the Canvas. The Apps all compile and run both in the Simulator and on an external device such as my iPhone, Error details below.. Any ideas would be helpful. Thanks.. Craig. == DATE: Friday, 7 July 2023 at 9:13:45 pm Australian Eastern Standard Time 2023-07-07T11:13:45Z == PREVIEW UPDATE ERROR: SchemeBuildError: Failed to build the scheme ”Ham Net” linker command failed with exit code 1 (use -v to see invocation) Link Ham Net (arm64): ld: Undefined symbols: unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.myFavourite.init : Swift.Bool, referenced from: Ham_Net.HamNetItems.myFavourite.init : Swift.Bool in AddNetView.o unsafeMutableAddressor of self #1 : Ham_Net.HamNetItems in Ham_Net.HamNetItems.netFrequency.init : Swift.String, referenced from: Ham_Net.HamNetItems.netFrequency.init : Swift.String in AddNetView.o un
Replies
3
Boosts
0
Views
2.1k
Activity
Jul ’23
Reply to The customized GPX file for Xcode 16 cannot be selected.
I think, Sequoia doesn't recognize the GPX-Files. If you add this file into your project scheme manually, it works. Just put the file name into the file: .xcsheme: and it will work. The .gpx musst be in your Xcode project, of course. If you don't know at which place in the .xcsceme file it hast to be put, you can put in Xcode some standard location (for example Honolulu), exit Xcode and replace Honolulu- sequence with the sequence above in the .xcscheme file. Best DM
Replies
Boosts
Views
Activity
Nov ’24
Reply to Unable to open phone application in IOS 9 swift
It's not a file URL; it's a regular URL. You're using the wrong NSURL constructor. And the string you have there is not a valid URL. It is missing the slashes. URLs start with scheme colon slash slash...
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’16
Reply to Fail to raise open file limit
This is the exact diagnostic given by Xcode. I am building a Single View App project. I didn't use an external library. I am doing some demo, but this error occurs.failed to raise open file limit----------------------------------------SchemeBuildError: Failed to build the scheme Memorizefailed to raise open file limitBuild system information:error: failed to raise open file limit--------------------------------------Solved. Just a system setting issue
Replies
Boosts
Views
Activity
May ’20