Post

Replies

Boosts

Views

Activity

xcrun from XCTest
Is it possible to execute an xcrun command from XCTest when targeting iOS? Access to xcrun simctl during test setup could be extremely valuable. For example, Post a notification to the simulator Reset the simulator's privacy settings (to request the dialog again) Add media to the simulator Manipulate the keychain to skip login Open a URL directly without having to jump through hoops This is possible when the target is macOS via Process(), but that doesn't exist for an iOS Test Host. And trying to dynamically load the class crashes the bundle.
0
0
713
Aug ’20
xcrun from a sandboxed macOS app
Is it possible to run xcrun from a sandboxed macOS app? The following code doesn't work and raises the error message in the console. let task = Process() task.executableURL = URL(fileURLWithPath: "/usr/bin/xcrun") try! task.run() xcrun: error: cannot be used within an App Sandbox. Are there any workarounds for this? I don't think it is possible to get read permission's for the /usr/bin directory from the user. Or should I be creating a bug report and trying to work through a temporary exception?
9
0
1.9k
Jul ’20
Uploading screenshots to App Store Connect fails
Uploading screenshots for an update to my app is consistently failing today. Dragging and dropping the image into the field shows the spinner fill then the image appears. The save button never enables. If I change some other metadata the save button appears. Clicking it works but then the "uploaded" image has a big red explanation point on it. Hovering the image states IMAGE_TOOL_FAILURE. Is there anything I can do on my end to get this working or is it a bug in App Store Connect? Any help would be greatly appreciated!
30
2
7.3k
Jun ’20
Question on transaction type
I am adding Apple Pay to a client's app that offers professional serviecs. For example, you schedule a cleaner to come to your home or a repair person to fix your TV. At the time of booking the price is only an estimate. After the service is completed the final price will be known (based on time spent, materials, travel, etc).Can I use the following transaction type for these types of purchases? If so, what is the "range" of prices I can increase or decrease from the initial estimation?Transaction type: Authorization & capture with different amountDescription: Reserve funds on a customer’s account and transfer money to your bank once an order is successfully completed for an amount higher or lower than authorizedExample: Taxi, Scooter
0
0
727
Apr ’20