chore: Archive-Polish — Versions-Sync + Orientations + Mac-Icon

- CFBundleShortVersionString 0.1.0 + CFBundleVersion 1 in beiden
  Extensions (Widget + Share), damit sie mit dem Main-Bundle matchen
  (Apple-Validation-Warning bei Embedded-Binary)
- UISupportedInterfaceOrientations (iPhone Portrait/Landscape +
  iPad alle vier), behebt Validation-Warning
- AppIcon mac-Slot auf size 1024x1024 (Asset-Catalog akzeptiert)
- xcodeVersion: 16.0 im XcodeGen-Manifest gegen "Update to
  recommended settings"-Hint
- ShareViewController: DispatchQueue.main.async für State-Updates
  aus NSItemProvider-Callbacks (Swift-6-Concurrency-Sauberkeit)
- PendingShareStore.append: guard url != nil statt unused-let

Archive verifiziert via xcodebuild archive -allowProvisioningUpdates:
ARCHIVE SUCCEEDED, alle drei Provisioning Profiles (cardecky,
cardecky.widget, cardecky.share) automatisch geholt + signiert.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-05-13 14:06:11 +02:00
parent 4dfb32ba25
commit 6d9a191527
4 changed files with 32 additions and 7 deletions

View file

@ -31,16 +31,27 @@ final class ShareViewController: UIViewController {
group.enter()
provider.loadItem(forTypeIdentifier: UTType.url.identifier, options: nil) { item, _ in
if let url = item as? URL {
self.sharedURL = url.absoluteString
if self.sharedText.isEmpty { self.sharedText = url.absoluteString }
let absolute = url.absoluteString
DispatchQueue.main.async {
self.sharedURL = absolute
if self.sharedText.isEmpty { self.sharedText = absolute }
group.leave()
}
} else {
group.leave()
}
group.leave()
}
} else if provider.hasItemConformingToTypeIdentifier(UTType.plainText.identifier) {
group.enter()
provider.loadItem(forTypeIdentifier: UTType.plainText.identifier, options: nil) { item, _ in
if let text = item as? String { self.sharedText = text }
group.leave()
if let text = item as? String {
DispatchQueue.main.async {
self.sharedText = text
group.leave()
}
} else {
group.leave()
}
}
}
}

View file

@ -39,7 +39,7 @@ enum PendingShareStore {
/// kann ein Eintrag verloren gehen akzeptabel, weil Extension nur
/// schreibt wenn User aktiv "Teilen" tippt.
static func append(_ share: PendingShare) {
guard let url else { return }
guard url != nil else { return }
var all = readAll()
all.append(share)
write(all)

View file

@ -34,7 +34,7 @@
"filename" : "AppIcon-1024.png",
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
"size" : "1024x1024"
}
],
"info" : {

View file

@ -3,6 +3,7 @@ name: CardsNative
options:
bundleIdPrefix: ev.mana
createIntermediateGroups: true
xcodeVersion: "16.0"
deploymentTarget:
iOS: "18.0"
macOS: "15.0"
@ -59,6 +60,15 @@ targets:
CFBundleDisplayName: Cards
LSApplicationCategoryType: "public.app-category.education"
UILaunchScreen: {}
UISupportedInterfaceOrientations:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
UISupportedInterfaceOrientations~ipad:
- UIInterfaceOrientationPortrait
- UIInterfaceOrientationPortraitUpsideDown
- UIInterfaceOrientationLandscapeLeft
- UIInterfaceOrientationLandscapeRight
CFBundleURLTypes:
- CFBundleURLName: ev.mana.cardecky
CFBundleURLSchemes:
@ -100,6 +110,8 @@ targets:
path: ShareExtension/Resources/Info.plist
properties:
CFBundleDisplayName: Als Karte speichern
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "1"
NSExtension:
NSExtensionPointIdentifier: com.apple.share-services
NSExtensionPrincipalClass: $(PRODUCT_MODULE_NAME).ShareViewController
@ -131,6 +143,8 @@ targets:
path: Widgets/CardsWidget/Resources/Info.plist
properties:
CFBundleDisplayName: Cards Widget
CFBundleShortVersionString: "0.1.0"
CFBundleVersion: "1"
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
entitlements: