Apple WatchOS 2 doesn't load embedded Frameworks
| Originator: | atrettin | ||
| Number: | rdar://22306229 | Date Originated: | 17-Aug-2015 02:19 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode-beta (7A176x) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: The example project has got an Apple WatchOS2 app with an additional Framework compiled and linked to the app. The app is working normally in the watch simulator. After installing it and running it on a Apple Watch device the app doesn't start and the debugger shows the following error: dyld: Library not loaded: @rpath/FWaWTest.framework/FWaWTest Referenced from: /private/var/mobile/Containers/Bundle/Application/856895F8-0697-4D1D-914B-799CED60ECAB/com.babbel.AW2.watchkitapp.app/PlugIns/AW2App Extension.appex/AW2App Extension Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/856895F8-0697-4D1D-914B-799CED60ECAB/com.babbel.AW2.watchkitapp.app/PlugIns/AW2App Extension.appex/Frameworks/FWaWTest.framework/FWaWTest: mmap() error 1 at address=0x0014C000, size=0x00008000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/856895F8-0697-4D1D-914B-799CED60ECAB/com.babbel.AW2.watchkitapp.app/PlugIns/AW2App Extension.appex/Frameworks/FWaWTest.framework/FWaWTest Steps to Reproduce: 1. Create new project in Xcode for iOS. 2. Create new target for watchOS 2. 3. Create a new framework target for watchOS 2. 4. Embedded the framework to the Watch Extension. Expected Results: The framework should be loaded during app launch. Actual Results: The framework is not loaded correctly. App crashes. Version: watchOS 2.0 (13S5305d) Xcode 7.0 beta 4 (7A165t) Notes: Configuration: Attachments: 'AW2.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!