johnno1962 / injectionforxcode

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

Injection does not work with non-ascii characters #105

Open liweiBingo opened 8 years ago

liweiBingo commented 8 years ago

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

johnno1962 commented 8 years ago

need to see more of the log..

liweiBingo commented 8 years ago


Connection from: /Users/jishubu0315/Library/Developer/CoreSimulator/Devices/2F428E29-614C-4ECA-83C3-EAA17CD65C46/data/Containers/Data/Application/12C7DAD5-259B-4C3C-80FD-2034991239A8 x86_64 (146)
buidRoot: /Users/jishubu0315/Library/Developer/Xcode/DerivedData/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©-cieeaotzrbggctebdiqxcptkkhtu/Build
logDir: /Users/jishubu0315/Library/Developer/Xcode/DerivedData/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©-cieeaotzrbggctebdiqxcptkkhtu/Logs/Build


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

2016-03-19 15:51:42.614 xcodebuild[13149:13086044] ### Failed to load Addressbook class CNContactNameFormatter
Build settings from command line:
 ARCHS = x86_64
 SDKROOT = iphonesimulator9.2

=== 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/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/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/md/54_px46x2rs2my0j17_mn2xm0000gn/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.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.2 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-generated-files.hmap -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-own-target-headers.hmap -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-all-target-headers.hmap -iquote /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-project-headers.hmap -iquote.. -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/libxml2 -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources/x86_64 -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources -F/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/Debug-iphonesimulator -include /var/folders/md/54_px46x2rs2my0j17_mn2xm0000gn/C/com.apple.DeveloperTools/7.2-7C68/Xcode/SharedPrecompiledHeaders/InjectionBundle-Prefix-buasihvavgiitfaxxdnncmpgtnxh/InjectionBundle-Prefix.pch -MMD -MT dependencies -MF /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.d --serialize-diagnostics /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.dia -c /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/BundleContents.m -o /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.o
In file included from /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/BundleContents.m:48:
/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/towViewController.m:12:9: fatal error: 'AFNetworking.h' file not found
#import "AFNetworking.h"
 ^
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/jishubu0315/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/jishubu0315/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 460
 Bundle build failed 

Disconnected from: /Users/jishubu0315/Library/Developer/CoreSimulator/Devices/2F428E29-614C-4ECA-83C3-EAA17CD65C46/data/Containers/Data/Application/12C7DAD5-259B-4C3C-80FD-2034991239A8
Connection from: /Users/jishubu0315/Library/Developer/CoreSimulator/Devices/2F428E29-614C-4ECA-83C3-EAA17CD65C46/data/Containers/Data/Application/4394CA61-BFB4-4B38-8FA4-3396401C9E55 x86_64 (95)
buidRoot: /Users/jishubu0315/Library/Developer/Xcode/DerivedData/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©-cieeaotzrbggctebdiqxcptkkhtu/Build
logDir: /Users/jishubu0315/Library/Developer/Xcode/DerivedData/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©-cieeaotzrbggctebdiqxcptkkhtu/Logs/Build


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

2016-03-19 16:48:23.166 xcodebuild[14842:13320295] ### Failed to load Addressbook class CNContactNameFormatter
Build settings from command line:
 ARCHS = x86_64
 SDKROOT = iphonesimulator9.2

=== 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/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/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/md/54_px46x2rs2my0j17_mn2xm0000gn/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.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.2 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-generated-files.hmap -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-own-target-headers.hmap -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-all-target-headers.hmap -iquote /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/InjectionBundle-project-headers.hmap -iquote.. -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/Debug-iphonesimulator/include -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.2.sdk/usr/include/libxml2 -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources/x86_64 -I/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/DerivedSources -F/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/Debug-iphonesimulator -include /var/folders/md/54_px46x2rs2my0j17_mn2xm0000gn/C/com.apple.DeveloperTools/7.2-7C68/Xcode/SharedPrecompiledHeaders/InjectionBundle-Prefix-buasihvavgiitfaxxdnncmpgtnxh/InjectionBundle-Prefix.pch -MMD -MT dependencies -MF /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.d --serialize-diagnostics /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x86_64/BundleContents.dia -c /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/BundleContents.m -o /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/build/InjectionBundle.build/Debug-iphonesimulator/InjectionBundle.build/Objects-normal/x8664/BundleContents.o
In file included from /Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/iOSInjectionProject/BundleContents.m:48:
/Users/jishubu0315/Desktop/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/ð¦ËŁflÕðÎ¥ïÏ£î‚Êî…©/towViewController.m:12:9: fatal error: 'AFNetworking.h' file not found
#import "AFNetworking.h"
 ^
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.10.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/jishubu0315/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/jishubu0315/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 460
**_ Bundle build failed ***

johnno1962 commented 8 years ago

Sorry but injection will not work with non-ascii characters in the path to the project.

liweiBingo commented 8 years ago

Good thank you