johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

*** Build Failed with status: 65. #119

Closed jenthone closed 8 years ago

jenthone commented 8 years ago

This is the first time I use Injection For Xcode. When I injection source, it build failed. Please help me. Thanks !

\ 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/hnp/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/hnp/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 461 * Bundle build failed *

johnno1962 commented 8 years ago

The error message should be just before the text above. I’ll need that before I know what the problem is.

jenthone commented 8 years ago

Full error message below. Thanks ! /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/Objects-normal/x86_64/CLoginViewController.dia -c /Users/hnp/AppProjects/MyObjectProject/MyObjectProject/ViewController/CLoginViewController.m -o iOSInjectionProject/x86_64/injecting_class.o 1.09 real 0.15 user 0.50 sys ls: *.framework: No such file or directory

    Building iOSInjectionProject/InjectionBundle.xcodeproj
    "/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild"  -configuration Debug -arch x86_64 -sdk iphonesimulator

    Ld build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle normal x86_64
    cd /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject
    export IPHONEOS_DEPLOYMENT_TARGET=9.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator -F/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator -filelist /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/InjectionBundle.LinkFileList -mios-simulator-version-min=9.1 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 x86_64/injecting_class.o -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator -F/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator/MyObjectProject.app/Frameworks -undefined dynamic_lookup -fobjc-arc -fobjc-link-runtime -framework UIKit -framework QuartzCore -framework OpenGLES -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/InjectionBundle_dependency_info.dat -o /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle
    ld: warning: -undefined dynamic_lookup is deprecated on iOS
    ld: framework not found GoogleMaps 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/hnp/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/hnp/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 461
    *** Bundle build failed ***

    buidRoot: /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build
    logDir: /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Logs/Build

    Learnt compile:     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/hnp/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/hnp/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -DCOCOAPODS=1 -DOVERCOAT_SUPPORT_URL_CONNECTION=1 -DOVERCOAT_SUPPORT_URL_SESSION=1 -DOVERCOAT_SUPPORT_REACTIVE_COCOA=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=7.0 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/MyObjectProject-generated-files.hmap -I/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/MyObjectProject-own-target-headers.hmap -I/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/MyObjectProject-all-target-headers.hmap -iquote /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/MyObjectProject-project-headers.hmap -I/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator/include -I/Users/hnp/AppProjects/MyObjectProject/Pods/Google/Headers -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/AFNetworking -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/ActionSheetPicker-3.0 -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Bolts -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/DZNEmptyDataSet -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/EAIntroView -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/EARestrictedScrollView -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/FBSDKCoreKit -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/FBSDKLoginKit -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Google -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleAnalytics -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleInterchangeUtilities -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleMaps -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleNetworkingUtilities -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleSymbolUtilities -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleUtilities -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/HCSStarRatingView -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/HexColors -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/INTULocationManager -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/IQActionSheetPickerView -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Mantle -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/NSDate+Helper -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Overcoat -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Raygun4iOS -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Reachability -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/ReactiveCocoa -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Realm -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/SVProgressHUD -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/SocketRocket -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/TPKeyboardAvoiding -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/TSMessages -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Toast -I/Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/iOS-Slide-Menu -I/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/DerivedSources/x86_64 -I/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/DerivedSources -F/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator -F/Users/hnp/AppProjects/MyObjectProject/Pods/GoogleMaps/Frameworks -F/Users/hnp/AppProjects/MyObjectProject/Pods/Raygun4iOS -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/AFNetworking -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/ActionSheetPicker-3.0 -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Bolts -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/DZNEmptyDataSet -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/EAIntroView -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/EARestrictedScrollView -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/FBSDKCoreKit -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/FBSDKLoginKit -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Google -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleAnalytics -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleInterchangeUtilities -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleMaps -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleNetworkingUtilities -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleSymbolUtilities -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/GoogleUtilities -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/HCSStarRatingView -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/HexColors -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/INTULocationManager -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/IQActionSheetPickerView -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Mantle -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/NSDate+Helper -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Overcoat -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Raygun4iOS -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Reachability -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/ReactiveCocoa -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Realm -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/SVProgressHUD -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/SocketRocket -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/TPKeyboardAvoiding -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/TSMessages -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/Toast -isystem /Users/hnp/AppProjects/MyObjectProject/Pods/Headers/Public/iOS-Slide-Menu -include /Users/hnp/AppProjects/MyObjectProject/MyObjectProject/MyObjectProject-Prefix.pch -MMD -MT dependencies -MF /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/Objects-normal/x86_64/CLoginViewController.d --serialize-diagnostics /Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Intermediates/MyObjectProject.build/Debug-iphonesimulator/MyObjectProject.build/Objects-normal/x86_64/CLoginViewController.dia -c /Users/hnp/AppProjects/MyObjectProject/MyObjectProject/ViewController/CLoginViewController.m -o iOSInjectionProject/x86_64/injecting_class.o
    0.19 real         0.13 user         0.05 sys
    ls: *.framework: No such file or directory

    Building iOSInjectionProject/InjectionBundle.xcodeproj
    "/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild"  -configuration Debug -arch x86_64 -sdk iphonesimulator

    2016-04-02 22:37:20.844 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XVim.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-04-02 22:37:20.847 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Unity4XC.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-04-02 22:37:20.848 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/RealmBrowser.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-04-02 22:37:20.849 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/OMColorSense.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-04-02 22:37:20.850 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Lin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    2016-04-02 22:37:20.851 xcodebuild[7990:219539] [MT] PluginLoading: Required plug-in compatibility UUID ACA8656B-FEA8-4B6D-8E4A-93F4C95C362C for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/FuzzyAutocomplete.xcplugin' not present in DVTPlugInCompatibilityUUIDs
    Build settings from command line:
    ARCHS = x86_64
    SDKROOT = iphonesimulator9.3

    === BUILD TARGET InjectionBundle OF PROJECT InjectionBundle WITH CONFIGURATION Debug ===

    Check dependencies

    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
    cd /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/8w/smwgnvk17jgbgw88tt016glh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wmissing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.1 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-generated-files.hmap -I/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-own-target-headers.hmap -I/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-all-target-headers.hmap -iquote /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-project-headers.hmap -iquote.. -I/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/libxml2 -I/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources/x86_64 -I/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources -F/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator -include /var/folders/8w/smwgnvk17jgbgw88tt016glh0000gn/C/com.apple.DeveloperTools/7.3-7D175/Xcode/SharedPrecompiledHeaders/InjectionBundle-Prefix-asggasgyyzwyatgevmemjwnrloqo/InjectionBundle-Prefix.pch -MMD -MT dependencies -MF /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.d --serialize-diagnostics /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.dia -c /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/BundleContents.m -o /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.o

    Ld build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle normal x86_64
    cd /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject
    export IPHONEOS_DEPLOYMENT_TARGET=9.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -L/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator -F/Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator -filelist /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/InjectionBundle.LinkFileList -mios-simulator-version-min=9.1 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 x86_64/injecting_class.o -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -F/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator -F/Users/hnp/Library/Developer/Xcode/DerivedData/MyObjectProject-hadbackklizmcqfsucftcuyskdvh/Build/Products/Debug-iphonesimulator/MyObjectProject.app/Frameworks -undefined dynamic_lookup -fobjc-arc -fobjc-link-runtime -framework UIKit -framework QuartzCore -framework OpenGLES -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/InjectionBundle_dependency_info.dat -o /Users/hnp/AppProjects/MyObjectProject/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle.bundle/InjectionBundle
    ld: warning: -undefined dynamic_lookup is deprecated on iOS
    ld: framework not found GoogleMaps 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/hnp/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/hnp/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 461
    *** Bundle build failed ***
johnno1962 commented 8 years ago

Problem is "ld: framework not found GoogleMaps for architecture x86_64”. You need to set the framework search path of your iOSInjectionProject “Project/Injection Plugin/Open BundleProject” to include the directory where this framework can be found.

jenthone commented 8 years ago

Thanks !