Watch Kit Extension target can't be compiled with LTO enabled
| Originator: | p.schmittat | ||
| Number: | rdar://20006709 | Date Originated: | 02-Mar-2015 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | iOS 8.2 |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: When enabling LLVM_LTO (Link-Time Optimization) on a watch kit extension target it can't be compiled. Steps to Reproduce: Open example project Compile project (most importantly watch kit extension target) Find compile error Expected Results: No compile error as it is with normal app targets Actual Results: Compile error with something along the lines on the watch kit extension target: "ld: entry point (_main) undefined. for architecture arm64" Version: iOS 8.2 Notes: See attached sample project for problem Configuration: Macbook, OS X 10.10, Xcode 6.2 (6C121) Attachments: 'LTO.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!