injectionforxcode
injectionforxcode copied to clipboard
Failed Build with Status 65
** BUILD FAILED ** The following build commands failed: Ld build/Debug-iphoneos/InjectionBundle.bundle/InjectionBundle normal arm64 (1 failure) *** Build Failed with status: 65. You may need to open and edit the bundle project to resolve issues with either header include paths or Frameworks the bundle links against. **_ at /Users/willhua/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57. main::error('Build Failed with status: 65. You may need to open and edit t...') called at /Users/willhua/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 460 **_ Bundle build failed ***
I am trying to get Injection for XCode working again. I have version 6.4 and XCode version 7.2. I have looked at issue #57 and #58 (which just say that the issue has been resolved). Not sure how to approach debugging / fixing this issue.
Update your plugin by deleteing and reinstalling/building it and delete the iOSInjectionProject folder and try again. There needs to be be ENABLE_BITCODE = NO; in the bundle project’s project.pbxproj.
I removed the plugin via Alcatraz and deleted ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin.
I also removed iOSInjectionProject from the project.
I then exited XCode and re-downloaded the project via Alcatraz and patched the project. I ran into the same issue.
You need to find where ENABLE_BITCODE=YES is set in the bundle project. This is most strange. That has been fixed for a year!
Oh sorry I forgot mention my ENABLE_BITCODE has been set to NO already.
I remember I tried to use this project last year and this is the issue that came up.
Maybe there's something else I forgot to delete? Or Alcatraz isn't completely updated.
Try setting the minimum deployment target to 8.0 in the Bundle project. This should avoid bitcode.
It doesn't seem to help. The minimum deployment target was 7.0 before if that matters.
can you email iOSInjectionProject/InjectionBundle.xcodeproj/project.pbxproj to injection at johnholdsworth.com?
Should have sent it your way
Thanks, your Bundle project still has default iOS deployment version, can you set it to 8.0? Problem is the "-fembed-bitcode-marker” when it compiles the bundle.
Is this where I change the iOS deployment version?
In the bundle project.. menu item, “Project/Injection Plugin/Open Bundle Project” and change that.
same problem for me, i tried all above and it also BUILD FAILED ,i set all ENABLE_BITCODE for NO。
/Users/admin/DocumentsKingIOS/KingIOS 1.0.6/View/XNWQuestionListCell.h:10:9: fatal error: 'Masonry.h' file not found 1 error generated. ** BUILD FAILED **
The following build commands failed: CompileC build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.o BundleContents.m normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) *** Build Failed with status: 65. You may need to open and edit the bundle project to resolve issues with either header include paths or Frameworks the bundle links against. **_ at /Users/admin/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57. main::error('Build Failed with status: 65. You may need to open and edit t...') called at /Users/admin/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 460 **_ Bundle build failed ***
seems to be a different problem to me:
/Users/admin/DocumentsKingIOS/KingIOS 1.0.6/View/XNWQuestionListCell.h:10:9: fatal error: 'Masonry.h' file not found
Can you try your project without the space in the directory path?
I changed the deployment target as you specified and it seemed to fix the issue. However, now I have a different issue:
Could not codesign as 'iPhone Developer': /Users/willhua/Documents/XCode Projects/Eventus/iOSInjectionProject/build/Debug-iphoneos/InjectionBundle1.bundle
In the iOSInjectionProject, the Code Signing section of Build Settings, the Code Signing Identity is "Don't Code Sign."
Check out https://github.com/johnno1962/injectionforxcode/issues/41
*** Build Failed with status: 2. You may need to open and edit the bundle project to resolve issues with either header include paths or Frameworks the bundle links against. *** help!
I also encountered the same problem if you know how to solve it, contact me please [email protected] this is my email
I'm having some problem. Also in the Injection Console before it prints that it has failed with 65 status it says that one of the frameworks we are using couldn't be found for x86_64 architecture:
...
ld: warning: directory not found for option '-F/Users/yas/Library/Developer/Xcode/DerivedData/Caremobile-bvkpgrfszsplakgvzgeekswqpduj/Build/Products/Debug-iphonesimulator'
ld: warning: -undefined dynamic_lookup is deprecated on iOS
ld: framework not found DVCoreDataFinders for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle normal x86_64
(1 failure)
*** Build Failed with status: 65. You may need to open and edit the bundle project to resolve issues with either header include paths or Frameworks the bundle links against. ***
at /Users/yas/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
main::error('Build Failed with status: 65. You may need to open and edit t...') called at /Users/yas/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 460
*** Bundle build failed ***
- The framework was added using CocoaPods if it matters.
- iOS Deployment target is iOS 8.1
- I have tried to to set
ENABLE_BITCODE = NO
in our project. I also have tried temporary to set it to NO for all Pods we have. Still getting the error. - Also I have tried the plugin on another project (example app of FormatterKit) and the injection works there.
I hope it will help.
@yas375, you need to adjust the framework search path in your injection bundle project.. "Product/Injection Plugin/Open Bundle Project” so the bundle can link. Add the directory containing the DVCoreDataFinders framework.
This might sound weird, but it works now without any change...
Actually this morning I was about to give a try to your recommendation, but when I was running the injection, my app was just closing. I didn't have much time in the morning to look more closely. Now I've cleared DerivedData for another time and run it again and it seem to work as expected! :clap:
Since yesterday I was jumping between branches. Some of them contain different frameworks. I don't know if it matters.
I've just got the same issue as I was getting in the morning. The injection just closes my app. That problem doesn't say anything about status 65 so I have created a separate issue with details: https://github.com/johnno1962/injectionforxcode/issues/118
Thanks again for your help and for the plugin, John!
Hi All, Wanted to try the plugin and had the same issue: **The following build commands failed: Ld build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle normal x86_64 (1 failure) *** Build Failed with status: 65. You may need to open and edit the bundle project to resolve issues with either header include paths or Frameworks the bundle links against. **_ at /Users/myName/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57. main::error('Build Failed with status: 65. You may need to open and edit t...') called at /Users/michaelrozenblat/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 461 **_ Bundle build failed *****
I changed the search Framework path to recursive (didn't helped)
Thanks.
Hi, The information about the error is just before the messsage you pasted which only says the build (probably the linking) failed. Can you paste a little more?
I have some installed projects using CocoaPods, as well as the Facebook SDK, and was running into this same problem. For anyone that stumbles upon a similar issue, this is what worked for me:
- Product > Injection Plugin > Open Bundle Project
- Open Build Settings, search for "Framework Search Paths"
- Add "../*" and make it recursive.
- Try building. A Product > Clean might be necessary.
I still get -undefined dynamic_lookup is deprecated on iOS
, but it's only a warning, and Injection works.
Would it be theoretically possible for Injection to auto-detect if someone is using CocoaPods and add the correct framework search paths to the InjectionBundle project? Maybe CocoaPods is not the root of the issue, I'm only guessing.
encountered the same issue and managed to fix it follow all the solution provided by the author and other guys above, tuned out that none of these work for me(keep throwing code 65)!! anybody help?
@Charybdis Works fine
Please look at my problem
file.txt
Hi, fatal error: 'WeikeModel.h' file not found #import “WeikeModel.h”. I’m afraid Injection dooen’t supprt spaces in directory names.