Search results for

file uri scheme

79,854 results found

Post

Replies

Boosts

Views

Activity

Xcode Cloud macOS won't run test scheme - "Failed to load the test bundle"
I'm new to Xcode cloud - working with a Mac OS app, build is working great. Now I am trying to add a Test action; the testing target builds but won't run, and the error indicates it can't find the testing bundle in the expected build output. There's also mention of a code signing error, but I have automatic code signing enabled with the same settings on test target as the app. I am only running the unit test (XCTest) scheme, not the UI tests. When I run it locally from the IDE it works fine, either selecting the test scheme explicitly or as the test step of the app scheme. I notice the XCTest target's scheme setup uses Debug builds and expects the test output to be in the Debug .app bundle, I thought perhaps that was the problem (in case only the release app bundle actually gets built in the Xcode Cloud environment). So I created a duplicate scheme and set the build targets to Release - again I can run this fine locally (after creating a release build), but it fail
11
0
5.2k
Dec ’22
Reply to Can't Test StoreKit in Sandbox or Xcode
One thing you can do in Xcode 12 is to test purchases in the simulator, if you set up a StoreKit Configuration file and enable it in the project scheme... Then you can do the full range of purchase testing in the simulator. On device Sandbox should still present a login (make sure your scheme does not have a StoreKit configuration active if you want to test using Sandbox), if you go to Settings->AppStore are you already logged in to a testing account? If you are it would not present a new login. I get the same crash in Xcode using the Transactions window and clicking on manage subscriptions, though Xcode 12.2 seems to have a release candidate now and that might fix things.
Topic: App & System Services SubTopic: StoreKit Tags:
Nov ’20
Reply to Why SFSymbol "face.smiling" will changed to "face.smiling.fill" when switching to dark mode.
Environment Variable? I know in SwiftUI you can: struct SmileyFaceView: View { @Environment(.colorScheme) var scheme var body: some View { Image(systemName: face.smiling) .foregroundColor(scheme == .light ? .black : .white) // this is to change to color according to the scheme .environment(.colorScheme, .light) // This is to force the icon to the face.smily } } for your need not sure in UIKit
Topic: Design SubTopic: General Tags:
Sep ’22
Determine difference between build/clean/archive in Scheme pre/post actions
When running scripts in the Scheme's build pre/post actions, I have been struggling to determine the difference between when the action has been run through a Build, Clean or Archive. The motivation in this case is that I have a Build Post-action that increments build numbers after building^[1]. So far the best solution I have come up with is to select the Provide build settings from and then specify my target. This way I can detemine some things from the environment variables in the script, for example: ACTION is empty when building/cleaning both Debug and Release builds, but set to install when archiving. CONFIGURATION is set to Debug/Release when building/cleaning Debug/Release builds respectively. The biggest gripe I have is that I haven't found a way to determine if a clean is being run vs a build - especially if you relate it to the motivating example that is incrementing build numbers, you don't want them to increment on a clean! Does anyone know of a way to do this? Alternatively, does anyone
1
0
708
Jul ’20
Reply to Unable to use the Enterprise App Store Connect APIs from xcodebuild
@madsolar8582 xcodebuild clean archive -workspace MyApp.xcworkspace -scheme MyApp -configuration Release -archivePath results/artifacts/App.xcarchive -destination generic/platform=iOS -derivedDataPath build -allowProvisioningUpdates -authenticationKeyID **** -authenticationKeyIssuerID **** -authenticationKeyPath /Users/MyUser/MyKey.p8 Running xcodebuild with the authentication API keys only supports exporting archives. This workflow doesn't support building and archiving. To upload your binary, first archive your binary, create a plist file that configures archive exporting, gather your Enterprise Authentication API keys from the portal, then run the following command in Terminal: xcodebuild -exportArchive -archivePath -exportPath -exportOptionsPlist -allowProvisioningUpdates -authenticationKeyPath -authenticationKeyID -authenticationKeyIssuerID The -exportArchive option specifies that xcodebuild should distribute the archive specified by -archivePath using the options specified by -ex
Sep ’24
Widget Extension scheme causes "failed to find valid container bundle" errors when ran
I've got a macOS app with a Widget Extension. When I try to run the scheme attached to this extension, WidgetKit Simulator unexpectedly quits and I get plenty of errors such as the ones below, that do not seem to be at all linked with the purpose nor the functionalities explicitly used by the app (nor the extension). That's what I get in Xcode's console: com.apple.siri.AssistantSettingsControls failed to find valid container bundle for file:///System/Library/ExtensionKit/Extensions/AssistantSettingsControlsExtension.appex/ at /System/Library/ExtensionKit/Extensions/AssistantSettingsControlsExtension.appex com.apple.settings-intents.LoginItemsIntents failed to find valid container bundle for file:///System/Library/ExtensionKit/Extensions/LoginItemsIntentsExtension.appex/ at /System/Library/ExtensionKit/Extensions/LoginItemsIntentsExtension.appex com.apple.SoftwareUpdate.SoftwareUpdateSettingsWidget failed to find valid container bundle for file:///System/Library/ExtensionKit
1
0
462
Dec ’24
canOpenURL not working, scheme now must be only lowercase?
In iOS 9 and below it's working perfectly, on iOS 10 canOpenURL return always NO...In my plist I have this:<key>LSApplicationQueriesSchemes</key> <array> <string>easymeetingS</string> </array>From what this output in console:Jan 1 01:02:18 iPad-41-Air-v100 easymeetingOnCall S(UIKit)[374] <Notice>: -canOpenURL: failed for URL: easymeetingS:// - error: This app is not allowed to query for scheme easymeetingsI can deduce that at some point they enforced lowercase on URL schemas, why? Is this bug or permanent modification? I see nowhere in documentation the enforcing of lowercase...
0
0
1.8k
Jun ’16