We have an app that takes data from the accelerometer of the iPhone and watchOS. Some updates ago we included the high-frequency accelerometer for the watchOS with the CMBatchedSensorManager framework.
We didn't test our app on iOS 16 or 15 devices, where that framework is unavailable, because the update was just for watchOS. We refer to that class just on a shared class, and was wrapped with an #if os(watchOS) condition.
In our iPhone app, we import the CoreMotion framework but CMBatchedSensorManager is not used.
Now, when you run the app on a device with iOS 15 you find this issue: dyld[17071]:
Symbol not found: (OBJC_CLASS$_CMBatchedSensorManager)
Referenced from: '/private/var/containers/Bundle/Application/C3CC754F-1674-4CBD-AD83-93229DDCF38D/Spleeft.app/Spleeft'
Expected in: '/System/Library/Frameworks/CoreMotion.framework/CoreMotion'
We need a solution to keep running our app on devices with iOS 15.0
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi! I've added the code of the multidevice workout app from Apple to my app and I found some issues that I cannot see on the sample app.
In my app, to pause or end the workout from the watch, the iOS companion app has to be opened or at least on background, but never closed.
What I'm doing wrong?
Topic:
App & System Services
SubTopic:
Health & Fitness
Tags:
Health and Fitness
HealthKit
WorkoutKit
I have an app that unlocks content based on in-app purchases, both one-time payments and subscriptions.
Recently, I added new subscription products, both for distribution in App Store Connect and in the configuration file in XCode to be able to test it, declaring it in the scheme.
Since the beginning of development, I have had issues with subscriptions. Every time I close the app and reopen it, in order for the app to recover which subscription is active, I have to run the purchase function. This doesn’t happen with purchases or in the production environment, where it works fine.
I’ve now implemented SubscriptionStoreView, so I don’t depend on my business logic, in case I’m doing something wrong in the code. This view never remembers which product I’ve already purchased. Currently, in a version deployed to my phone from XCode, it doesn't even process the payment.
On macOS, the experience is even worse. On iPad, through TestFlight, I haven’t even been able to test payments at all.
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
Xcode
StoreKit Test
StoreKit
TestFlight
Hello Apple Developer Community,
I'm experiencing a persistent issue with App Groups configuration for an iOS app extension that I can't resolve despite trying multiple approaches. I hope someone can help identify what I'm missing.
Problem Description
I'm getting this error when trying to build my iOS App Extension:
Provisioning profile "iOS Team Provisioning Profile: com.idlrapp.Spleeft.SpleeftDataSaver" doesn't include the com.apple.developer.app-groups entitlement.
My Setup
Main App Bundle ID: com.idlrapp.Spleeft
Extension Bundle ID: com.idlrapp.Spleeft.SpleeftDataSaver
App Group ID: group.com.idlrapp.spleeft.shared
Extension Type: Action Extension (Share Sheet)
What I've Verified
App Group Creation
✅ Created App Group group.com.idlrapp.spleeft.shared in Apple Developer Portal
✅ App Group shows as "Active" in the portal
App ID Configuration
✅ Both App IDs (com.idlrapp.Spleeft and com.idlrapp.Spleeft.SpleeftDataSaver) have "App Groups" capability enabled
✅ Both App IDs are configured with the same App Group: group.com.idlrapp.spleeft.shared
Entitlements Files
Main App (Spleeft.entitlements):
Extension (SpleeftDataSaver.entitlements):
Xcode Configuration
✅ Both targets use "Automatically manage signing" ✅ Same Apple Developer Team selected for both ✅ App Groups capability shows correctly in Signing & Capabilities for both targets
The Issue
When I examine the downloaded .mobileprovision file, I can see it contains:
However, Xcode expects to find:
What I've Tried
Multiple regenerations of provisioning profiles:
Deleted all local provisioning profiles
Toggled "Automatically manage signing" off/on
Downloaded manual profiles from Developer Portal
Verified App Group configuration:
Double-checked App Group exists and is active
Confirmed both App IDs have App Groups capability enabled
Verified App Group assignment in both App IDs
Entitlements cleanup:
Ensured consistent App Group IDs across all files
Removed duplicate/conflicting entries
Clean builds and cache clearing:
Product → Clean Build Folder
Derived Data deletion
Xcode restart
Key Observation
The provisioning profile contains com.apple.security.application-groups (which appears to be macOS-style) but Xcode expects com.apple.developer.app-groups (iOS-style) for the App Extension.
The main app builds fine, but the extension consistently fails with this entitlement mismatch.
Questions
Is there a known issue with App Groups entitlement generation for iOS App Extensions?
Should the provisioning profile contain com.apple.developer.app-groups instead of com.apple.security.application-groups?
Is there a way to force regeneration of provisioning profiles with the correct entitlements?
Are there additional steps required for App Extensions that differ from main apps?
Any guidance would be greatly appreciated. This is blocking our App Extension development and we've exhausted our troubleshooting options.
Environment:
Xcode: [Tu versión de Xcode]
iOS Deployment Target: [Tu target]
Developer Account: [Paid/Individual/Team]
Thank you for your time and assistance.
Hello Apple Developer Community,
I'm experiencing a persistent issue with App Groups configuration for an iOS app extension that I can't resolve despite trying multiple approaches. I hope someone can help identify what I'm missing.
Problem Description
I'm getting this error when trying to build my iOS App Extension:
Provisioning profile "iOS Team Provisioning Profile: com.idlrapp.Spleeft.SpleeftDataSaver" doesn't include the com.apple.developer.app-groups entitlement.
My Setup
Main App Bundle ID: com.idlrapp.Spleeft
Extension Bundle ID: com.idlrapp.Spleeft.SpleeftDataSaver
App Group ID: group.com.idlrapp.spleeft.shared
Extension Type: Action Extension (Share Sheet)
What I've Verified
App Group Creation
✅ Created App Group group.com.idlrapp.spleeft.shared in Apple Developer Portal
✅ App Group shows as "Active" in the portal
App ID Configuration
✅ Both App IDs (com.idlrapp.Spleeft and com.idlrapp.Spleeft.SpleeftDataSaver) have "App Groups" capability enabled
✅ Both App IDs are configured with the same App Group: group.com.idlrapp.spleeft.shared
Entitlements Files
Main App (Spleeft.entitlements):
<key>com.apple.developer.app-groups</key>
<array>
<string>group.com.idlrapp.spleeft.shared</string>
</array>
Extension (SpleeftDataSaver.entitlements):
<key>com.apple.developer.app-groups</key>
<array>
<string>group.com.idlrapp.spleeft.shared</string>
</array>
Xcode Configuration
✅ Both targets use "Automatically manage signing" ✅ Same Apple Developer Team selected for both ✅ App Groups capability shows correctly in Signing & Capabilities for both targets
The Issue
When I examine the downloaded .mobileprovision file, I can see it contains:
<dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.idlrapp.spleeft.shared</string>
</array>
<!-- Other entitlements... -->
</dict>
However, Xcode expects to find:
<array>
<string>group.com.idlrapp.spleeft.shared</string>
</array>
What I've Tried
Multiple regenerations of provisioning profiles:
Deleted all local provisioning profiles
Toggled "Automatically manage signing" off/on
Downloaded manual profiles from Developer Portal
Verified App Group configuration:
Double-checked App Group exists and is active
Confirmed both App IDs have App Groups capability enabled
Verified App Group assignment in both App IDs
Entitlements cleanup:
Ensured consistent App Group IDs across all files
Removed duplicate/conflicting entries
Clean builds and cache clearing:
Product → Clean Build Folder
Derived Data deletion
Xcode restart
Key Observation
The provisioning profile contains com.apple.security.application-groups (which appears to be macOS-style) but Xcode expects com.apple.developer.app-groups (iOS-style) for the App Extension.
Questions
Is there a known issue with App Groups entitlement generation for iOS App Extensions?
Should the provisioning profile contain com.apple.developer.app-groups instead of com.apple.security.application-groups?
Is there a way to force regeneration of provisioning profiles with the correct entitlements?
Are there additional steps required for App Extensions that differ from main apps?
Any guidance would be greatly appreciated. This is blocking our App Extension development and we've exhausted our troubleshooting options.
Thank you for your time and assistance.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags:
Entitlements
Signing Certificates