johnno1962 / injectionforxcode

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

Injection Source not showing expected output in Iphone 5.0 Simultaor #4

Closed mohitngm closed 11 years ago

mohitngm commented 11 years ago

Hi,

i have tested on xcode 4.5.1 and iphone 5.0 simulator i have installed injection as per guidelines . for testing purpose i downloaded UICatalog and done following step

  1. patched project for injection
  2. Run the project
  3. now made changes in UICatalog URL string from www.apple.com to www.google.com and done "product -> inject source" it have shown notification "class WebViewController is injected" but expected output is not reflected , it sill showing "http://www.apple.com" can u help me on that ? have i done something wrong?

in injection console it shown me following thing


Patching bundle project to app path: /Users/mohitn/Library/Application Support/iPhone Simulator/5.0/Applications/C5960405-43A0-4BB2-965C-A4B9FFCA90CE/UICatalog.app/UICatalog

Building iOSInjectionProject/InjectionBundle.xcodeproj
bash ../iOSInjectionProject/compile_iphonesimulator.sh # xcodebuild -project InjectionBundle.xcodeproj -configuration Debug -sdk iphonesimulator


real 0m0.327s
user 0m0.191s
sys 0m0.033s

real 0m0.161s
user 0m0.043s
sys 0m0.014s

real 0m0.705s
user 0m0.018s
sys 0m0.018s

/usr/bin/touch -c /Users/mohitn/Downloads/UICatalog/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle.bundle

\ COMPILE SUCCEEDED **

Renaming bundle..
Loading Bundle...

Bundle loaded successfully.



Thanks

johnno1962 commented 11 years ago

Hi,

-viewDidLoad is only called once. If you inject before the view is first loaded change takes affect.

Hope this helps.

John ----- Original Message ----- From: mohitngm To: johnno1962/injectionforxcode Sent: Saturday, January 26, 2013 8:54 PM Subject: [injectionforxcode] Injection Source not showing expected output in Iphone 5.0 Simultaor (#4)

Hi,

i have tested on xcode 4.5.1 and iphone 5.0 simulator i have installed injection as per guidelines . for testing purpose i downloaded UICatalog and done following step

1.. patched project for injection 
2.. Run the project 
3.. now made changes in UICatalog URL string from www.apple.com to www.google.com and done "product -> inject source" it have shown notification "class WebViewController is injected" but expected output is not reflected , it sill showing "http://www.apple.com" can u help me on that ? have i done something wrong? 

in injection console it shown me following thing


Patching bundle project to app path: /Users/mohitn/Library/Application Support/iPhone Simulator/5.0/Applications/C5960405-43A0-4BB2-965C-A4B9FFCA90CE/UICatalog.app/UICatalog

Building iOSInjectionProject/InjectionBundle.xcodeproj
bash ../iOSInjectionProject/compile_iphonesimulator.sh # xcodebuild -project InjectionBundle.xcodeproj -configuration Debug -sdk iphonesimulator


real 0m0.327s
user 0m0.191s
sys 0m0.033s

real 0m0.161s
user 0m0.043s
sys 0m0.014s

real 0m0.705s
user 0m0.018s
sys 0m0.018s

/usr/bin/touch -c /Users/mohitn/Downloads/UICatalog/iOSInjectionProject/build/Debug-iphonesimulator/InjectionBundle.bundle

\ COMPILE SUCCEEDED **

Renaming bundle..
Loading Bundle...

Bundle loaded successfully.



Thanks

— Reply to this email directly or view it on GitHub.

mohitngm commented 11 years ago

yeh, you are absolutely right , i have done some other changes and it working fine .. thanks gr8 tool :+1: