Post

Replies

Boosts

Views

Activity

Reply to Xcode Version 15.0 (15A240d) Reality Composer is missing
Hi! Same issue for me. I can't use Xcode 14 because I need iOS 17 feature like Apple Play. I copied Reality Composer app from Xcode 14 to Xcode 15 folder. But Xcode 15 can't handle .rcproject file and keep giving the following error: "Could not determine generated file paths for RC project code generation: The command (cd …testRealityKit && /Applications/Xcode.app/Contents/Developer/usr/bin/rctool generate '--dry-run=true' ‘text.rcproject '--swift-version=5.0') terminated with uncaught signal 6. " Any idea how to fix this issue? Thank you!
Nov ’23
Reply to DateComponentsFormatter formatted string is not working as expected
It seems that defining a timezone helps to handle the daylight savning as you can see.     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "America/Toronto") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationShortAbidjan: DateComponentsFormatter = {     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "Africa/Abidjan") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationShortTokyo: DateComponentsFormatter = {     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "Asia/Tokyo") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationToronto = durationShortToronto.string(from: 86400 * 213)  // 213d 1h let durationAbidjan = durationShortAbidjan.string(from: 86400 * 213)  // 213d let durationTokyo = durationShortTokyo.string(from: 86400 * 213)      // 213d
Topic: App & System Services SubTopic: General Tags:
Feb ’22
Reply to Xcode Version 15.0 (15A240d) Reality Composer is missing
Hi! Same issue for me. I can't use Xcode 14 because I need iOS 17 feature like Apple Play. I copied Reality Composer app from Xcode 14 to Xcode 15 folder. But Xcode 15 can't handle .rcproject file and keep giving the following error: "Could not determine generated file paths for RC project code generation: The command (cd …testRealityKit && /Applications/Xcode.app/Contents/Developer/usr/bin/rctool generate '--dry-run=true' ‘text.rcproject '--swift-version=5.0') terminated with uncaught signal 6. " Any idea how to fix this issue? Thank you!
Replies
Boosts
Views
Activity
Nov ’23
Reply to How to launch apple watch app from companion app?
Thank you, but do you have any idea on how Maps on Apple Watch is started right away when navigation starts on companion app? Thank you!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Reply to DateComponentsFormatter formatted string is not working as expected
It seems that defining a timezone helps to handle the daylight savning as you can see.     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "America/Toronto") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationShortAbidjan: DateComponentsFormatter = {     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "Africa/Abidjan") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationShortTokyo: DateComponentsFormatter = {     let formatter = DateComponentsFormatter()     var calendar = Calendar.current     calendar.timeZone = TimeZone(identifier: "Asia/Tokyo") ?? .current     formatter.allowedUnits = [.day, .hour, .minute]     formatter.unitsStyle = .abbreviated     formatter.zeroFormattingBehavior = .dropAll     formatter.maximumUnitCount = 3     formatter.collapsesLargestUnit = false     formatter.calendar = calendar     return formatter }() let durationToronto = durationShortToronto.string(from: 86400 * 213)  // 213d 1h let durationAbidjan = durationShortAbidjan.string(from: 86400 * 213)  // 213d let durationTokyo = durationShortTokyo.string(from: 86400 * 213)      // 213d
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Reply to DateComponentsFormatter formatted string is not working as expected
Thank you @claude31 and @eskimo for your insights. I think that it might be related to daylight shift. I'm still investigating how to handle that. Thank you!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22