Link fast: Improve build and launch times

RSS for tag

Discuss the WWDC22 Session Link fast: Improve build and launch times

Posts under wwdc2022-110362 tag

4 Posts

Post

Replies

Boosts

Views

Activity

Watch app Optimize performance & Launch time
I'm trying to ensure my watch app launches as quickly as possible. I'm using the @WKApplicationDelegateAdaptor because of needing to implement the BackgroundRefresh handlers. What I'm finding is that the time between the app calling the main init() and then the ExtensionDelegate calling applicationDidFinishLaunching is often > 2 seconds. I've tried using Instruments to profile the App launch but have never had any luck with the tool on a watch app. So I then created a blank project just with the elements needed to implement the same WKApplicationDelegateAdaptor and oslog calls, performance was the same... This is tested on WatchOS 9.5 & 9.5. This is on a Series 6 and Series 8 Apple Watch (FYI S6 == S7 == S8 for Apple Watch CPU performance) Interestingly, on the simulator, the time gap was less, more like 1 second between main init() and applicationDidFinishLaunching.... not sure why this would be this way. Anyway, for real world device usage, is this the best performance I can expect? Is there anything that can be done to improve this?
0
0
1.2k
Apr ’23
"dyld: Symbol not found" crash when I run my app using Xcode 14 because can't find CGRect.divided(...)
I'm getting a crash when I try to run my app using Xcode 14. From the console: dyld[21862]: Symbol not found: _$sSo6CGRectV12CoreGraphicsE9__divided5slice9remainder10atDistance4fromySpyABG_AiC7CGFloatVSo0A4EdgeVtF   Referenced from: **path to my framework**   Expected in: /usr/lib/swift/libswiftCoreGraphics.dylib The code that causes crash is: keyLabel.frame = bounds.divided(atDistance: labelHeight, from: .maxYEdge).slice It seems it can't find that CGRect function. Additional info: I'm on macOS 12.4 and was running my app in mac-catalyst mode. The crash doesn't happen when I run it inside an iPad simulator. But crashes when I run it on my iPad Pro (with iPadOS 15.5). Everything works fine on Xcode 13.4.
6
2
5.9k
Sep ’22
strip: error: new trie is larger (1264) than original (1256)
Strip /Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme (in target 'eleme' from project 'eleme')   cd /Users/hongtao/gitlab/nevermore   /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -s do_not_strip /Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: error: new trie is larger (1264) than original (1256)/Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme When I Archive myApp(eleme): it build error with Xcode 14 beta 5(14A5294e)。 It build success with Xcode 14 beta 5(14A5294e) when removed STRIPFLAGS = "-s do_not_strip" it build success with Xcode 13.4.1(13F100) This is the Build settings
2
0
1.3k
Sep ’22
Watch app Optimize performance & Launch time
I'm trying to ensure my watch app launches as quickly as possible. I'm using the @WKApplicationDelegateAdaptor because of needing to implement the BackgroundRefresh handlers. What I'm finding is that the time between the app calling the main init() and then the ExtensionDelegate calling applicationDidFinishLaunching is often > 2 seconds. I've tried using Instruments to profile the App launch but have never had any luck with the tool on a watch app. So I then created a blank project just with the elements needed to implement the same WKApplicationDelegateAdaptor and oslog calls, performance was the same... This is tested on WatchOS 9.5 & 9.5. This is on a Series 6 and Series 8 Apple Watch (FYI S6 == S7 == S8 for Apple Watch CPU performance) Interestingly, on the simulator, the time gap was less, more like 1 second between main init() and applicationDidFinishLaunching.... not sure why this would be this way. Anyway, for real world device usage, is this the best performance I can expect? Is there anything that can be done to improve this?
Replies
0
Boosts
0
Views
1.2k
Activity
Apr ’23
"dyld: Symbol not found" crash when I run my app using Xcode 14 because can't find CGRect.divided(...)
I'm getting a crash when I try to run my app using Xcode 14. From the console: dyld[21862]: Symbol not found: _$sSo6CGRectV12CoreGraphicsE9__divided5slice9remainder10atDistance4fromySpyABG_AiC7CGFloatVSo0A4EdgeVtF   Referenced from: **path to my framework**   Expected in: /usr/lib/swift/libswiftCoreGraphics.dylib The code that causes crash is: keyLabel.frame = bounds.divided(atDistance: labelHeight, from: .maxYEdge).slice It seems it can't find that CGRect function. Additional info: I'm on macOS 12.4 and was running my app in mac-catalyst mode. The crash doesn't happen when I run it inside an iPad simulator. But crashes when I run it on my iPad Pro (with iPadOS 15.5). Everything works fine on Xcode 13.4.
Replies
6
Boosts
2
Views
5.9k
Activity
Sep ’22
strip: error: new trie is larger (1264) than original (1256)
Strip /Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme (in target 'eleme' from project 'eleme')   cd /Users/hongtao/gitlab/nevermore   /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -s do_not_strip /Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: error: new trie is larger (1264) than original (1256)/Users/hongtao/Library/Developer/Xcode/DerivedData/eleme-astrofkmksaxenekwmzloymniesi/Build/Intermediates.noindex/ArchiveIntermediates/eleme/InstallationBuildProductsLocation/Applications/eleme.app/eleme When I Archive myApp(eleme): it build error with Xcode 14 beta 5(14A5294e)。 It build success with Xcode 14 beta 5(14A5294e) when removed STRIPFLAGS = "-s do_not_strip" it build success with Xcode 13.4.1(13F100) This is the Build settings
Replies
2
Boosts
0
Views
1.3k
Activity
Sep ’22
How to speed up compile the assets catalogs in the Xcode
I have more than 100 images assets in the project which took quite an amount of build time. Is there any way to optimise the processing time? Thank you.
Replies
1
Boosts
0
Views
1.5k
Activity
Jun ’22