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
Search results for
file uri scheme
79,854 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I faced the same issue. What I have found out is ASWebAuthenticationSession only uses custom URL scheme. I tried with universal link, still does not work. Callback is not happening back to the app. I would suggest you to use WKWebview for http/https scheme or use custom URL scheme.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
I fixed the issue by deleting and re-adding the test scheme for one of my internal frameworks in the Schemes management screen. This resolved the problem with xcodebuild.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Hey guys. There is temporary (I hope) solution to this issue: Scheme -> Edit Scheme Select Wait for executable to be launched Launch an app manually
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
It is quite common to use simulator screenshots.View at 100% (even if that means going larger than you can view on your monitor), then use the simulator's menu to capture/save.Crop/resize down as needed via your favorite image editor, then save, being aware of applicable file naming schemes, etc.
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
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:
Check the release notes - I'd wonder if has to do w/the new vend schemes... Create a fresh sample using an applicable template and see if those calls persist. Feel free to file bugs against the beta, being sure to add your report #(s) to your thread for ref., thanks and good luck.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
The subscription success popup now always shows the environment as “xcode. When you enable StoreKit Testing in Xcode, all your purchases occur in the local environment. When you disable StoreKit Testing in Xcode , purchases occur in the sandbox environment. To test in the sandbox, remove the StoreKit configuration file from your scheme's run options.
Topic:
App & System Services
SubTopic:
StoreKit
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
Issue was resolved by enabling OS_ACTIVITY_MODE variable. I believe I disabled it in XCode 8 to prevent unwanted output.Select from Xcode menu Product -> Scheme -> Edit Scheme.. Select the Run scheme and look under Arguments. If you see the OS_ACTIVITY_MODE variable checked, deselect it.
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
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
Thanks, the solution with the '-scheme' worked for me but it is odd that the same result can't be achieved with the '-target' parameter. There is only one scheme for a target so what could even go wrong here?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
@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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
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
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...