injectionforxcode: "Learnt Compile Failed" after Xcode 7.3 for targets with > 128 swift sources
Hi, I am getting this error after updating to Xcode 7.3
injecting_class.o
***
Learnt compile failed ***
at /Users/Diego/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
main::error('Learnt compile failed') called at /Users/Diego/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 349
*** Bundle build failed ***
There doesn’t seem to be any sign of an error in the stack trace apart from a fairly comprehensive list of files
Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -filelist … list of files
Any clues on this? Thank you very much.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 48 (19 by maintainers)
Trying to build my own Xcode toolchain now based of the Swift
3.0.1with the value set to512just to confirm if it works or not.Thanks for the log. Looks like a compiler crash to me… Actually it’s a problem. Large projects use "-filelist” with 7.3. You’re going to have problems injecting this project unless you can break it a smaller target + framework. I’ll look into it. Can you check if the file referred to in the -filelist argument exists?
Might as well. Apologies for your lost weekend recompiling Swift. This is a much better solution.