johnno1962 / injectionforxcode

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

xcode 7.3 怎么用不了啊, #132

Closed S-Freedom closed 7 years ago

S-Freedom commented 8 years ago

\ Could not codesign as 'iPhone Developer': /Users/Jeffery/Desktop/twotiger/twotigerios/iOSInjectionProject/build/Debug-iphoneos/InjectionBundle4.bundle **

 at /Users/Jeffery/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/common.pm line 57.
 main::error('Could not codesign as 9hone Developerø/Users/Jeffery/De...') called at /Users/Jeffery/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/injectSource.pl line 509
**_ Bundle build failed ***

johnno1962 commented 8 years ago

This is normally https://github.com/johnno1962/injectionforxcode/issues/41

ghost commented 7 years ago

兄弟这里是美国,不能用中文

johnno1962 commented 7 years ago

This is due to Xcode 8 support. Please use Project/Injection Plugin/Open Bundle Project to edit the bundle project to set a valid codesigning identity.

ghost commented 7 years ago

Error loading /Users/carroll/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/InjectionLoader.bundle/InjectionLoader: dlopen(/Users/carroll/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/InjectionLoader.bundle/InjectionLoader, 265): no suitable image found. Did find: /Users/carroll/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/InjectionLoader.bundle/InjectionLoader: required code signature missing for '/Users/carroll/Library/Application Support/Developer/Shared/Xcode/Plug-ins/InjectionPlugin.xcplugin/Contents/Resources/InjectionLoader.bundle/InjectionLoader'

Hey, @johnno1962 I don't know what I did wrong.

johnno1962 commented 7 years ago

Is tis Xcode 8? It requires that This bundle be code signed. The new plugin should do this in one of it’s run script build phases.

ghost commented 7 years ago

Yes, its run in Xcode 8, I am already signed. And I can load Alcatraz but I can't run injection Plug-in.

This is the step i signed.

sudo ./unsign /Applications/Xcode.app/Contents/MacOS/Xcode

And rename 'Xcode.unsigned ' to Xcode. and then restart Xcode load Alcatraz Bundle.

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-adddefaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`

Finally signed Xcode Plug-ins

Which step I did wrong? Please help me thank you. @johnno1962

johnno1962 commented 7 years ago

Problem for the error you list above is InjectionLoader.bundle not being code signed. Do you have the most recent version of Injection plugin compiled from source? It has a run script build phase which does this.

ghost commented 7 years ago

Error:

qq20160923-0 2x

Run Script

qq20160923-1 2x

Xcode 8 and Alcatraz

qq20160923-2 2x

@johnno1962 Sorry for troubling you again, I do not understand what you mean. I try to install again , But still wrong ...

johnno1962 commented 7 years ago

You have a duplicte of key “iPhone developer erming loo XXXXX" in your keychain. Check for this in the /Application/Utilities/Keychain Access app and delete the older one or if tey have different names use the full name for codesigning. The other error, I don’t know the cause but it doesn’t look like the problem.

ghost commented 7 years ago

I'm sorry, I renounce the use of this plug-in, I really can not solve, if you can document details installation instructions Xcode 8 tutorial, I will be grateful to you.

Now you can turn off this issues, Thank you.

S-Freedom commented 7 years ago

@luoerming I'm sorry, I'm newer, Thank you!