injectionforxcode icon indicating copy to clipboard operation
injectionforxcode copied to clipboard

Failed Build with Status 65

Open WilliamHua opened this issue 8 years ago • 29 comments



** 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 ***



WilliamHua avatar Mar 14 '16 00:03 WilliamHua

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.

WilliamHua avatar Mar 14 '16 00:03 WilliamHua

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.

johnno1962 avatar Mar 14 '16 01:03 johnno1962

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.

WilliamHua avatar Mar 14 '16 01:03 WilliamHua

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!

johnno1962 avatar Mar 14 '16 01:03 johnno1962

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.

WilliamHua avatar Mar 14 '16 01:03 WilliamHua

Try setting the minimum deployment target to 8.0 in the Bundle project. This should avoid bitcode.

johnno1962 avatar Mar 14 '16 01:03 johnno1962

It doesn't seem to help. The minimum deployment target was 7.0 before if that matters.

WilliamHua avatar Mar 14 '16 02:03 WilliamHua

can you email iOSInjectionProject/InjectionBundle.xcodeproj/project.pbxproj to injection at johnholdsworth.com?

johnno1962 avatar Mar 14 '16 02:03 johnno1962

Should have sent it your way

WilliamHua avatar Mar 14 '16 02:03 WilliamHua

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.

johnno1962 avatar Mar 14 '16 02:03 johnno1962

screen shot 2016-03-13 at 9 22 56 pm

Is this where I change the iOS deployment version?

WilliamHua avatar Mar 14 '16 02:03 WilliamHua

In the bundle project.. menu item, “Project/Injection Plugin/Open Bundle Project” and change that.

johnno1962 avatar Mar 14 '16 02:03 johnno1962

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 ***


CoderJason08 avatar Mar 15 '16 08:03 CoderJason08

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?

johnno1962 avatar Mar 15 '16 09:03 johnno1962

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."

WilliamHua avatar Mar 16 '16 01:03 WilliamHua

Check out https://github.com/johnno1962/injectionforxcode/issues/41

johnno1962 avatar Mar 16 '16 13:03 johnno1962

*** 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!

mikiXuan avatar Mar 17 '16 05:03 mikiXuan

I also encountered the same problem if you know how to solve it, contact me please [email protected] this is my email

821985307 avatar Mar 23 '16 09:03 821985307

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 avatar Mar 31 '16 01:03 yas375

@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.

johnno1962 avatar Mar 31 '16 05:03 johnno1962

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.

yas375 avatar Apr 01 '16 00:04 yas375

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!

yas375 avatar Apr 01 '16 07:04 yas375

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)

InjectionLog.txt

Thanks.

mikeRozen avatar Apr 23 '16 14:04 mikeRozen

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?

johnno1962 avatar Apr 23 '16 15:04 johnno1962

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:

  1. Product > Injection Plugin > Open Bundle Project
  2. Open Build Settings, search for "Framework Search Paths"
  3. Add "../*" and make it recursive.
  4. 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.

aaronash avatar Jun 27 '16 10:06 aaronash

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?

shiyuwudi avatar Jul 11 '16 08:07 shiyuwudi

@Charybdis Works fine

tonespy avatar Aug 05 '16 10:08 tonespy

Please look at my problem
file.txt

lyc59621 avatar Feb 23 '17 10:02 lyc59621

Hi, fatal error: 'WeikeModel.h' file not found
#import “WeikeModel.h”. I’m afraid Injection dooen’t supprt spaces in directory names.

johnno1962 avatar Feb 23 '17 10:02 johnno1962