{"action":"created","issue":{"url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/44","labels_url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/44/comments","events_url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/44/events","html_url":"https://github.com/johnno1962/injectionforxcode/issues/44","id":80203891,"number":44,"title":"Simple test case failing","user":{"login":"leopic","id":117184,"avatar_url":"https://avatars.githubusercontent.com/u/117184?v=3","gravatar_id":"","url":"https://api.github.com/users/leopic","html_url":"https://github.com/leopic","followers_url":"https://api.github.com/users/leopic/followers","following_url":"https://api.github.com/users/leopic/following{/other_user}","gists_url":"https://api.github.com/users/leopic/gists{/gist_id}","starred_url":"https://api.github.com/users/leopic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leopic/subscriptions","organizations_url":"https://api.github.com/users/leopic/orgs","repos_url":"https://api.github.com/users/leopic/repos","events_url":"https://api.github.com/users/leopic/events{/privacy}","received_events_url":"https://api.github.com/users/leopic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-24T16:31:04Z","updated_at":"2015-05-24T17:44:20Z","closed_at":null,"body":"Hi John\r\n\r\nI must have missed something in your instructions, because I can't get Injection to work.\r\n\r\nI installed the plugin via Alcatraz, created a new Swift single view project, using Xcode 6.3.2 (6D2105). Created an empty `main.m` file, then went into `Product > $name > Patch Project for Injection` and the `main.m` file changed accordingly. \r\n\r\nA couple of things happened, first the `main.m` file had a `NULL` reference at the end of the IP address list:\r\n```\r\nstatic const char *_inIPAddresses[] = {\"127.0.0.1\", \"192.168.0.8\", NULL};\r\n```\r\nwith that I couldn't build the project, so I got rid of it.\r\n\r\nThen I had an issue with the bundle, that was solved using Xcode's recommended settings. My project is as barebones as it gets:\r\n```\r\noverride func viewDidLoad() {\r\n        super.viewDidLoad()\r\n        //println(\"hola!\")\r\n    }\r\n```\r\n\r\nMy plan was to comment out the `println` statement and have it come up on my log after saving it, to no avail.\r\n\r\nThis is what I see on my console when I build the project:\r\n```\r\n2015-05-24 10:22:24.949 prueba de inyeccion[3127:44759] +[BundleInjection load] 127.0.0.1\r\n2015-05-24 10:22:24.952 prueba de inyeccion[3127:44781] Injection attempting connection to: 127.0.0.1:31442 (see project's main.(m|mm)\r\n2015-05-24 10:22:24.953 prueba de inyeccion[3127:44781] Connected to \"Injection\" plugin, ready to load i386 code.\r\n2015-05-24 10:22:24.966 prueba de inyeccion[3127:44781] Param #0 -> 1.000000\r\n2015-05-24 10:22:24.966 prueba de inyeccion[3127:44781] Param #1 -> 1.000000\r\n2015-05-24 10:22:24.966 prueba de inyeccion[3127:44781] Param #2 -> 1.000000\r\n2015-05-24 10:22:24.967 prueba de inyeccion[3127:44781] Param #3 -> 1.000000\r\n2015-05-24 10:22:24.967 prueba de inyeccion[3127:44781] Param #4 -> 1.000000\r\n2015-05-24 10:22:24.967 prueba de inyeccion[3127:44781] Color #0 -> 0.000000,0.000000,0.000000,1.000000\r\n2015-05-24 10:22:24.967 prueba de inyeccion[3127:44781] Color #1 -> 1.000000,0.000000,0.000000,1.000000\r\n2015-05-24 10:22:24.967 prueba de inyeccion[3127:44781] Color #2 -> 0.000000,1.000000,0.000000,1.000000\r\n2015-05-24 10:22:24.968 prueba de inyeccion[3127:44781] Color #3 -> 0.058130,0.055542,1.000000,1.000000\r\n2015-05-24 10:22:24.968 prueba de inyeccion[3127:44781] Color #4 -> 1.000000,1.000000,1.000000,1.000000\r\n```\r\n\r\nWhen I update the file and go to `Product > Inject Source`, this is the output that I get:\r\n```\r\nPatching project contained in: /Users/leo/Sites/treehouse/prueba de inyeccion/ Modified prueba de inyeccion/main.m … *** ./prueba de inyeccion/main.m.save\tSun May 24 10:14:43 2015 — ./prueba de inyeccion/main.m\tSun May 24 10:25:18 2015 *************** *** 0 **** — 1,11 —— +  +  + // From here to end of file added by Injection Plugin // +  + #ifdef DEBUG + static char _inMainFilePath[] = __FILE__; + static const char *_inIPAddresses[] = {“127.0.0.1”, “192.168.0.8”, NULL}; +  + #define INJECTION_ENABLED + #import “/Users/leo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/BundleInjection.h” + #endif  Connection from: /Users/leo/Library/Developer/CoreSimulator/Devices/D9CD58FE-1166-4333-97DD-4039AD238947/data/Containers/Data/Application/F86172BD-0EA7-473D-B0F1-DF123BB26E0C i386 (84) Learnt compile:     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file “/Users/leo/Sites/treehouse/prueba de inyeccion/prueba de inyeccion/ViewController.swift” “/Users/leo/Sites/treehouse/prueba de inyeccion/prueba de inyeccion/AppDelegate.swift” -target i386-apple-ios8.3 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -I /Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Products/Debug-iphonesimulator -F /Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Products/Debug-iphonesimulator -g -module-cache-path /Users/leo/Library/Developer/Xcode/DerivedData/ModuleCache -serialize-debugging-options -Xcc “-I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/swift-overrides.hmap” -Xcc -iquote -Xcc “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/prueba de inyeccion-generated-files.hmap” -Xcc “-I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/prueba de inyeccion-own-target-headers.hmap” -Xcc “-I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/prueba de inyeccion-all-target-headers.hmap” -Xcc -iquote -Xcc “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/prueba de inyeccion-project-headers.hmap” -Xcc -I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Products/Debug-iphonesimulator/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc “-I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/DerivedSources/i386” -Xcc “-I/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/DerivedSources” -Xcc -DDEBUG=1 -DINJECTION_BUNDLE -Xcc “-working-directory/Users/leo/Sites/treehouse/prueba de inyeccion” -emit-module-doc-path “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController~partial.swiftdoc” -Onone -module-name prueba_de_inyeccion -emit-module-path “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController~partial.swiftmodule” -serialize-diagnostics-path “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController.dia” -emit-dependencies-path “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController.d” -emit-reference-dependencies-path “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController.swiftdeps” -o “/Users/leo/Library/Developer/Xcode/DerivedData/prueba_de_inyeccion-ekwwypygqxvqrecrrdjltdwjxitx/Build/Intermediates/prueba de inyeccion.build/Debug-iphonesimulator/prueba de inyeccion.build/Objects-normal/i386/ViewController.o sh: -c: line 0: unexpected EOF while looking for matching `”’ sh: -c: line 1: syntax error: unexpected end of file Learnt compile failed at /Users/leo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 51. \tmain::error(‘Learnt compile failed’) called at /Users/leo/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 287 *** Bundle build failed *** Check Bundle project.\r\n```\r\n\r\nBut building the bundle project works fine, any clues here?\r\n\r\nI'm not using any frameworks or any complex project setup, it's just a brand new Single View Swift project."},"comment":{"url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/comments/105041677","html_url":"https://github.com/johnno1962/injectionforxcode/issues/44#issuecomment-105041677","issue_url":"https://api.github.com/repos/johnno1962/injectionforxcode/issues/44","id":105041677,"user":{"login":"johnno1962","id":1786033,"avatar_url":"https://avatars.githubusercontent.com/u/1786033?v=3","gravatar_id":"","url":"https://api.github.com/users/johnno1962","html_url":"https://github.com/johnno1962","followers_url":"https://api.github.com/users/johnno1962/followers","following_url":"https://api.github.com/users/johnno1962/following{/other_user}","gists_url":"https://api.github.com/users/johnno1962/gists{/gist_id}","starred_url":"https://api.github.com/users/johnno1962/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnno1962/subscriptions","organizations_url":"https://api.github.com/users/johnno1962/orgs","repos_url":"https://api.github.com/users/johnno1962/repos","events_url":"https://api.github.com/users/johnno1962/events{/privacy}","received_events_url":"https://api.github.com/users/johnno1962/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T17:44:20Z","updated_at":"2015-05-24T17:44:20Z","body":"Hi Leo, try two things. Better to replace the NULL with 0 rather than remove it completely. Also, try a project name without spaces in it which is probably the problem."}}