Removing Lingering Provisioning Profiles - xcode

I'm trying to remove all of my personal provisioning profiles that were loaded into my work computer when I added my account to Xcode.
I've already removed my account from the Accounts tab in settings.
I deleted all profiles in ~/Library/MobileDevice/Provisioning Profiles
I deleted and reinstalled Xcode. No matter what I do, the provisioning profiles will still appear in Build Settings > Provisioning Profile.
Is there another place where these are stored? I am using Xcode 6.4
EDIT:
I've made some progress. In the folder /Users/admin/Library/Developer/Xcode (admin is my username), I searched for one of the profiles by ID using
sudo find . -type f -exec grep -l '2322c49f' {} +
where 2322c49f is the beginning of the ID. This showed me that this ID was in the file DeveloperPortal 6.4.db-wal. When I opened it, it showed a lot of characters that couldn't be rendered, so I thought maybe it's a binary file. Then scrolling down was a plist embedded in it. The plist consisted of all the profiles. I delete this file and the two other similar files, listed below
DeveloperPortal 6.4.db DeveloperPortal 6.4.db-shm
I restarted XCode, it regenerated these three files, but the profiles continued to appear in them

I found another location where profiles are kept
/System/Library/MobileDevice/Provisioning Profiles/
I deleted the profiles from here and that solved the issue

Related

All my Jenkins jobs and configs have disappeared after restart of my Mac

After updating macOS to Mojave (10.14.4), my Mac was restarted and upon opening Jenkins (at localhost:8080) it appeared that I've lost all my jobs and the entire system configurations.
There was only 1 user (admin) defined in my installation and my usual password was deemed invalid, when I tried to log back in. So, I tried entering another password I normally used and it was accepted. I then found that all my jobs and configs have disappeared. It looked as if I've just started Jenkins for the first time.
Looking through here on StackOverFlow, there were suggestions to check the JENKINS_HOME variable to find out where the jobs are saved on the disk, but when I typed export $JENKINS_HOME I just get an empty response. So, it looks like I've never configured it during set up.
I then dig through the hard drive and found the folders matching the names of the jobs I created under ~/.jenkins/workspace. However, the contents of all the folders are empty. I was expecting to see the usual files, e.g. build.xml, config.xml, etc.
I then did a global search for build.xml and config.xml on Mac Finder it turned up nothing.
Any idea where my jobs went and what could have caused all the contents of the folders of the jobs to be empty?
You can find your Jenkins installation directory in "Manage Jenkins" -> "configure System" --> "Home directory". Find what was the Jenkins home before you restart MAC. It looks like your home directory is either deleted by you or you are pointing to new folder now. Set it to earlier folder.
If can help,
I'm having a similar problem.
The curious part is about the new directory after the service restart ".jenkins" directory inside :
'/var/root/'.
And now, the password that Jenkins request me is not from
'/Users/username/.jenkins/secrets/initialAdministratorPassword' but from the newst one with same path pattern.
Simon

Can't delete WebSphere profile - what left to do?

My WebSphere profile has issues, so I wanted to delete and recreate it. When I do the following from a command line (win7)
[WAS-installDir]/bin/manageprofiles.sh -delete -profileName [Profilname]
it tells me that the profile is corrupted and can't be deleted:
So what other possibilites do I have? (The German reads to: The Profile ________ is currently in use. Repeat the command at a later point in time. If this is not possible, the profile might be corrupted. Use the command validateAndUpdateRegistry and recreate the profile.
INSTCONFFAILED: The profile cannot be deleted. More information can be found at C:\Program Files\IBM\WebSphere8.5\AppServer\logs\manageprofiles_________delete.log)
In the mentioned log file it says again that the profile can't be deleted because it is in use.
Is there a way to delete this profile anyhow, without destroying something important? Is it saved in some directory that I can simply delete?

How to delete a deployment manager profile that was partially created?

I was creating a deployment manager profile in IBM WebSphere. I stopped it while it was creating using ctrl+C. When I ran the command manageprofiles.sh -listProfiles, it did not return any profiles([]). Then I tried creating the profile with the same name but I got a message stating a profile with the same name already exists. So I tried running the manageprofiles -delete command with the partially created profile name only to find that the profile does not exist.
Just delete the partially created directory from WAS_ROOT/profiles/ and run the manageprofiles -validateAndUpdateRegistry command. You should be fine then.
-validateAndUpdateRegistry
Checks all of the profiles that are listed in the profile registry to see if the profiles are present on the file system. Removes any
missing profiles from the registry. Returns a list of the missing
profiles that were deleted from the registry.
See manageprofiles command

How to ensure OS X app Entitlements are applied?

I've configured Entitlements in Xcode, but they don't get put in the compiled app bundle. Do I have to do some additional steps?
I'm writing an OS X "Developer ID"-signed application (not for the AppStore), and to be able to implement an Extension that shares preferences with the parent app I need to put them in the same App Group.
I've configured App Groups in Xcode, and I see them in $Extension.entitlements and $ParentApp.entitlements plist.
However, in the built product $Extension.app/Contents/_CodeSignature/CodeEntitlements resembles a default entitlements file without the group I've configured, and in the parent app this file doesn't exist at all.
I've even tried signing the app again with an explicit entitlements file:
codesign --force --entitlements $ParentApp.entitlements -s "Developer ID" \
Build/Products/Debug/$ParentApp.app
but again, it doesn't get added to $ParentApp.app/Contents/_CodeSignature/CodeEntitlements.
At run time the parent app and the extension don't appear to be in the same app group: they write their preferences ([NSUserDefaults…initWithSuiteName:teamIdEtc]) to their own subdirectories in ~/Library/Containers rather than a shared dir in ~/Library/Group Containers.
Magically, it started to work after:
I've replaced $(TeamIdentifierPrefix) with actual identifier
Deleted DerivedData folders everywhere and rebuilt everything

Where to find extensions installed folder for Google Chrome on Mac?

I can not find them under ~/Library/Application Support/Google/Chrome/; Where are they?
Mac Pro 10.8.4
Chrome Version 26.0.1410.65
The default locations of Chrome's profile directory are documented in the User Data Directory article on Googlesource.com. (When this article was written in 2013, the User Data Directory article was at chromium.org.) It says there,
To determine the user data directory for a running Chrome instance:
Navigate to chrome://version
Look for the Profile Path field. This gives the path to the profile directory.
The user data directory is the parent of the profile directory.
For Chrome on Mac, it's
~/Library/Application\ Support/Google/Chrome/Default
The actual location can be different, by setting the --user-data-dir=path/to/directory flag.
If only one user is registered in Chrome, look in the Default/Extensions subdirectory. Otherwise, look in the <profile user name>/Extensions directory.
If that didn't help, you can always do a custom search.
Go to chrome://extensions/, and find out the ID of an extension (32 lowercase letters) (if not done already, activate "Developer mode" first).
Open the terminal, cd to the directory which is most likely a parent of your Chrome profile (if unsure, try ~ then /).
Run find . -type d -iname "<EXTENSION ID HERE>", for example:
find . -type d -iname jifpbeccnghkjeaalbbjmodiffmgedin
Result:
You can find all Chrome extensions in below location.
/Users/{mac_user}/Library/Application Support/Google/Chrome/Default/Extensions
For Mac EI caption/Mac Sierra, Chrome extension folders were located at
/Users/$USER/Library/Application\ Support/Google/Chrome/Profile*/Extensions/
With the new App Launcher YOUR APPS (not chrome extensions) stored in Users/[yourusername]/Applications/Chrome Apps/
They are found on either one of the below locations depending on how chrome was installed
When chrome is installed at the user level, it's located at:
~/Users/<username>/Library/Application\ Support/Google/Chrome/Default/Extensions
When installed at the root level, it's at:
/Library/Application\ Support/Google/Chrome/Default/Extensions
Go to chrome://version and get the right profile path.
In this folder you can find the extensions assigned to your profile by their id.
To find an extension id, enable the Developer mode in the extension page (chrome://extensions).
The id is now displayed within the extension details.
Source: https://www.maketecheasier.com/view-source-code-chrome-extension/

Resources