johnno1962 / injectionforxcode

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

TVOS with Cocoapods (Swift 2.2) #136

Open lemonhead94 opened 8 years ago

lemonhead94 commented 8 years ago


Connection from: /Users/Someone/Library/Developer/CoreSimulator/Devices/EC01DC49-0170-4292-B910-86D2E76101A3/data/Containers/Data/Application/4D386CD7-84DA-4E84-9E45-F70B0A355FE5 x8664 (53)
buidRoot: /Users/Someone/Library/Developer/Xcode/DerivedData/test4k-hiozgyjrciyivbduwicqmladypno/Build
logDir: /Users/Someone/Library/Developer/Xcode/DerivedData/test4k-hiozgyjrciyivbduwicqmladypno/Logs/Build

Use of uninitialized value in concatenation (.) or string at /Users/Someone/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 131.

* Could not locate compile command for /Users/Someone/Desktop/Test4k/test4k/ViewController.swift
If you have switched xcode versions, please cmd-shift-k to clean then rebuild the project so there is a complete build history logged and try again.
/Users/Someone/Library/Developer/Xcode/DerivedData/test4k-hiozgyjrciyivbduwicqmladypno/Logs/Build/36366380-C0F4-4CCF-9A3D-84C6307924AF.xcactivitylog /Users/Someone/Library/Developer/Xcode/DerivedData/test4k-hiozgyjrciyivbduwicqmladypno/Logs/Build/9A007E40-6110-4165-B9AA-1E6DBC468D2B.xcactivitylog 

 at /Users/Someone/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
 main::error('Could not locate compile command for /Users/Someone/Desktop/Tes...') called at /Users/Someone/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 252
**_ Bundle build failed ***



johnno1962 commented 8 years ago

I can only replicate this if I’m running a custom toolchain for swift (which I’ll need to fix someday) and yet you say Swift 2.2. Otherwise I’m seeing injection of TVOS with some recent changes.

lemonhead94 commented 8 years ago

hmm there was another message in the beginning, but I can't seem to make sense of it...

Copying iOSBundleTemplate into project.
Migrating project parameters to bundle..
Inported setting SDKROOT = appletvos;
Inported setting CLANG_ENABLE_OBJC_ARC = YES;
Inported setting CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
Inported setting CLANG_CXX_LIBRARY = "libc++";
Use of uninitialized value in concatenation (.) or string at /Users/Someone/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 131.

EDIT: also when injecting a storyboard it doesn't throw an error, but nothing new is shown as well

And yeah your right on a blank tvos project it seems to work fine, it must be an issue with one of the following cocoapod frameworks

and if i had to guess it's either cosmos or marqueelabel

johnno1962 commented 7 years ago

Just in time for Christmas I’ve been able to releaes a new binary version of Injection which makes getting up and running a breeze http://johnholdsworth.com/injection.html. If you have any problems please report them on it’s support repo https://github.com/johnno1962/InjectionApp. Happy Holidays! 🎅🍷🎄☃