Post

Replies

Boosts

Views

Activity

Reply to My iOS application cannot connect to the Sandbox environment.
I have been troubleshooting the issue of app signing and sandbox configurations for in-app purchase testing, and I believe the problem may be related to the developer certificate. As you mentioned, I have enabled sandbox support and the App Sandbox and In-App Purchase capabilities in Signing & Capabilities. However, I am encountering two problems that I believe are caused by the developer certificate: 1. When “Enable App Sandbox” is set to “No” in Build Settings, the app can be installed on the physical device. However, there is no prompt to trust an untrusted developer, and there are no certificates listed in the VPN or Device Management on the device. Moreover, the subscription test shows that the environment is set to “Local Xcode,” and transaction-related IDs are all 0. It seems the app is running in the local environment instead of the sandbox environment, and the installed app on the device is not signed with a developer certificate. 2. When “Enable App Sandbox” is set to “Yes” in Build Settings, Xcode throws the following error: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.Eq1o6c/extracted/Payload/XAPP.app : 0xe8008015 (A valid provisioning profile for this executable was not found.) Please ensure that your app is signed by a valid provisioning profile. If this issue persists, please attach the following when sending a report to Apple: A sysdiagnose from this Mac A sysdiagnose from the device failing installation An IPA of the app failing installation. I have searched extensively on the Apple Developer Forums and other resources, and it seems this issue is related to the certificates. I have attempted to switch to manual signing, regenerate my developer certificates (both through Xcode and App Store Connect), but none of these attempts have resolved the issue. This problem has been ongoing for two weeks, and I am urgently seeking assistance in resolving it. Thank you for your support!
2w