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 28 forks source link

Installing XCode plugin requires sign in into Apple account #56

Open omokagbo opened 2 years ago

omokagbo commented 2 years ago

I newly installed the XCode plugin for my XCode 13 and immediately I tried to build it for my device, I began running into issues. I had been signed out of my Apple account and there was no way to sign in again. I've done everything possible but to no avail. Cleared derived data and build folder but still the same thing. Restarted my XCode and system but still the same thing. I have also tried all the suggestions I've seen online but to no avail. I'm attaching screenshots of what the error looks like.

This is what it looks like when I try to run my app

Screenshot 2021-12-04 at 17 58 13

This is what it looks like when I try to sign into any of my accounts.

Screenshot 2021-12-04 at 17 58 06
starcomsys commented 2 years ago

This is an issue with how Wakatime does the signing if my memory is correct. To get around this, make a copy of your Xcode app before installing wakatime. That way you have a way to publish your app. Let Wakatime sign the non-copied app and use that one to track your development time. I don't like this work around but it works for me to publish apps to TestFlight and the AppStore

omokagbo commented 2 years ago

This is an issue with how Wakatime does the signing if my memory is correct. To get around this, make a copy of your Xcode app before installing wakatime. That way you have a way to publish your app. Let Wakatime sign the non-copied app and use that one to track your development time. I don't like this work around but it works for me to publish apps to TestFlight and the AppStore

Tried this as well when it happened. I ended up having two different xcodes (xcode and xcode with plugins) but my wakatime wasn't even functioning again.

loyio commented 2 years ago

the Same issues, I think it must remove the profile

p-x9 commented 2 years ago

type this commands below and don't sign Xcode.app

sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool true

skip Xcode sign like this

curl -fsSL https://raw.githubusercontent.com/wakatime/xcode-wakatime/master/install.sh | sh -s nosign
alanhamlett commented 2 years ago

@p-x9 does that work for you and track time on your dashboard? Another user is reporting an issue with these install steps in #64.

p-x9 commented 2 years ago

@alanhamlett yes, It' s logged correctly. But be careful not to sign the Xcode.app yourself, or it will not work properly.