wakatime / xcode-wakatime

Xcode plugin for automatic time tracking and metrics generated from your programming activity.
https://wakatime.com/xcode
BSD 3-Clause "New" or "Revised" License
393 stars 37 forks source link

xcodebuild error #42

Open rstims opened 5 years ago

rstims commented 5 years ago

When run a fastlane build I receive this error and it doesn't seem to track the build.

[MT] PluginLoading: Required plug-in compatibility UUID 72F7D751-F810-43B8-A53F-1F1DFD74FC54 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2019-05-02 09:11:03.784 xcodebuild[15087:1773171] WARNING: Failed to load plugin at path: "/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin", skipping. Error: Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime): no suitable image found.  Did find:
    /Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime: code signature in (/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    /Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime: stat() failed with errno=1" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime, NSDebugDescription=dlopen_preflight(/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime): no suitable image found.  Did find:
    /Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime: code signature in (/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
    /Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime: stat() failed with errno=1, NSBundlePath=/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin, NSLocalizedDescription=The bundle “WakaTime” couldn’t be loaded because it is damaged or missing necessary resources.}

Any thoughts?

alanhamlett commented 5 years ago

First thought is try re-installing the plugin with:

curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh

alanhamlett commented 4 years ago

The error happens when xcodebuild tries to load the WakaTime plugin bundle:

code signature in (/Users/ryanstimmler/Library/Application Support/Developer/Shared/Xcode/Plug-ins/WakaTime.xcplugin/Contents/MacOS/WakaTime) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

alanhamlett commented 4 years ago

Might be related to fastlane/fastlane#13401