Search results for

“file uri scheme”

84,452 results found

Post

Replies

Boosts

Views

Activity

"Failed to build the scheme (app name)"
Good morning, I have a problem. I'm a newbie on coding and I'm studying Swift with an old course online with Xcode 11 but I have Xcode 14 and some things are different. I'm building a test app to learn code but now I don't view the canvas, is in error, and the diagnostic give me this: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) SchemeBuildError: Failed to build the scheme PizzaList API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) Compile asset catalogs: CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) /* com.apple.actool.errors */ : error: ERROR: Identical key for two renditions (E)Key element: Grouped/Packed Images part: Artwork Image value: (null) identifier: 0 dim
3
0
4.3k
Mar ’23
[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.7k
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.2k
Aug ’22
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
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
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
663
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
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 Scheme Destination Toolbar Missing
This seems to be a bug to me, please dupe rdar://21855495.The thing that seemed to trigger it for me was a wider than usual Schemes menu, thanks to some duplication of iOS 8.4 device simulators (also filed a bug for that: rdar://21855393
Replies
Boosts
Views
Activity
Jul ’15
Reply to Using Simulator in Xcode 7.3.1 causes Xcode 8 projects to lose Scheme setting
Workaround: Close Xcode 8 beta 2 and delete the Username.xcuserdatad subfolder of the xcuserdata folder inside the project's xcodeproj file. When you open the project in Xcode 8 beta 2 again, the scheme is visible.Worked for me
Replies
Boosts
Views
Activity
Jul ’16
"Failed to build the scheme (app name)"
Good morning, I have a problem. I'm a newbie on coding and I'm studying Swift with an old course online with Xcode 11 but I have Xcode 14 and some things are different. I'm building a test app to learn code but now I don't view the canvas, is in error, and the diagnostic give me this: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) SchemeBuildError: Failed to build the scheme PizzaList API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) Compile asset catalogs: CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x600000dd9880, store PSC = 0x0) /* com.apple.actool.errors */ : error: ERROR: Identical key for two renditions (E)Key element: Grouped/Packed Images part: Artwork Image value: (null) identifier: 0 dim
Replies
3
Boosts
0
Views
4.3k
Activity
Mar ’23
[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.7k
Activity
Oct ’23
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.6k
Activity
Nov ’20
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.2k
Activity
Aug ’22
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
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
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
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 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
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
663
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
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