xcode 7.1 fails when calling chown - ios

I am building an iOS project on yosemite with xcode 7.1 on a macbook pro where i login with network (Domain) credentials.
If i do ls -l I can see my files belonging to myuser:24252342423
When Xcode tries to perform the chown command while building the archive it tries to do: chown -RH myuser:MYDOMAIN\\Domain\ Users <filepath>
and that generates an error: chown: MYDOMAIN\Domain\ Users: illegal group name
Any ideas on how to fix it?

The problem was due to me being connected in vpn and thus the groupname was not resolved, once i got back to office the problem was automatically solved.

Related

unable to run ionic project in iOS emulator. Getting Permission denied in xcode

When I try to run the Ionic project in the iOS emulator, I got permission error. Please find the error message below.
copyfile of
file:///Users/jathavan/Library/Developer/Xcode/DerivedData/mCrew-fptfelgfstzgncemgtxqzvgruanm/Build/Products/Debug-iphonesimulator/mCrew.app
to
file:///Users/jathavan/Library/Developer/CoreSimulator/Devices/81B458E9-9A93-4A3E-88F7-99F72D673A2C/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/FF46FA85-7F32-407C-9842-E6F26424EF95/mCrew.app
failed: Permission denied
I'm also facing same issue.This is happened because of your permissions override. I completely uninstall the exist xcode Applications. I installed from the start.
follow the steps it could help you.
1. You should remove these files from your machine.
/Applications/Xcode.app
/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Preferences/com.apple.dt.Xcode.plist
~/Library/Caches/com.apple.dt.Xcode
~/Library/Developer/Xcode
~/Library/Developer/CoreSimulator
2. restart your computer
3. install again.

No iOS device found, is it plugged in? in ideviceinstaller/ideviceinfo

I am getting the following error when I run ideviceinstaller/ideviceinfo commands:
No iOS device found, is it plugged in?
My iPhone is certainly plugged is and visible in lsusb.
Restart the usbmuxd service and your device will show up normally:
systemctl restart usbmuxd.service
Your iPhone will vibrate if it connected successfully.
there is a file 'lockdownd' and it might have 0700 permissions with the owner as root. You should try chmod 0705 lockdownd. restart was not necessary for me. You might also run ideviceinstaller/ideviceinfo as root or with sudo. You might not have a recent version or you might have multiple versions installed. There is an xcode version-ish and there is a brew.
UPDATE there are a lot of details missing here, however, I gt this error when I had installed libimodiledevices with brew and allowed or told brew to clean the other dynlinks. That disabled ideviceinfo etc because of a missing dynlib. For example flutter prepackages these tools and brew breaks it.

Xcode error when running on device: "Could not allocate a resource"

I'm getting the error "Could not allocate a resource" when I try to run on any of my devices. I've seen this as a possible fix:
sudo rm -rf /var/db/lockdown/
I've tried that and restarted my machine a handful of times, but no luck. I also tried changing USB ports. I've reinstalled Xcode as well after uninstalling with AppCleaner.
In addition to the error, whenever I connect a device it asks me "Trust This Computer?"
This is occurring on an iPhone 5 and iPhone 6+ with lightning, as well as an iPad 3 with the old style connector.
[Updates]
I've now also reinstalled iTunes to no effect.
Also reset PRAM and SMC.
After you delete that folder, you need to recreate again and make proper permissions, because iTunes need rw rights to that folder:
sudo mkdir /var/db/lockdown
sudo chmod go+w /var/db/lockdown
without having iTunes open. Then everything should be fine.
Also keep in mind the same operation may be required for /private/var/db/lockdown [a mirror]
If you moved and old Mac to a new one, make sure /var/db/lockdown/SystemConfiguration.plist contains your mac actual UUID . Generally it is not recommended to delete a system folder, anyway, without really knowing what you do. ;) Actually I replicated your problem moving /var/db/lockdown to another location, starting iTunes, getting error. Then recreate etc.

Platform ios already installed

I'm tryin' to debug my app on iOS simulator in my Mac.
I've followed all the instructions installing on my Mac:
sudo npm install -g vs-mda-remote
sudo npm install -g ios-sim
When I prompted
vs-mda-remote --buildDir Projects
(Projects is the folder where debug files will be droped), I see results in my PC by
http://<MAc_IP>:3000
With the following text
Remote build Express server open for business on port 3000
Ok, now I prompted
vs-mda-remote test
And I see an error with the following message
Failed to build app: CordovaError: Platform ios already added
I don't know what happen.
Ok, I found the problem. Maybe, I'm too eagier.
Instead of using one session in terminal app on mac, I used too many, so, when I prompted too many timesvs-mda-remote, obviously ios was already installed.
So, opening terminal at first time, and prompting
vs-mda-remote --buildDir Projects --allowsEmulate=true
Now, I can debug on iOS simulator from my PC to Mac.
While running the build agent, the correct command is:
vs-mda-remote --buildDir <server-build-directory> --allowsEmulate=true
Note the last "--allowsEmulate=true" part of the command.
*Taken from "Setting up the Remote Agent to Support Starting the iOS Simulator" section in the documentation.
Platform ios already installed
Received this error for running in device too, while running multiple instance in mac.
Quit Terminal and run single instance for vs-mda-remote to resolve this problem if you receive this error for running in Device.

Xcode 4 ios simulator permissions issue

I just upgraded to Lion and I have screwed up my ios simulator permissions...
You see, when I upgraded to lion I was forced to create a new user, and now all of the Xcode permissions point to that user.
I know this because I can load the ios simulator from that new user just fine, I cannot, however, do this form my original user account -- the simulator DOES open, but it immediately hangs.
I have tried recursively chowning both Xcode.app (which contains my iPhone Simulator.app) as well as the ios application support folder to set my normal account as owner
I also chmod'd those same two directories with both a+rwx and a=rwx in that order.
What other files does the ios simulator reference that need to have their permissions updated?
Reinstall Xcode. Here's how: http://osxdaily.com/2012/02/20/uninstall-xcode/
I'd suggest to reinstall the Xcode. Xcode (at least the App Store version) is not owned by the user who installed it:
$ ls -ld /Applications/Xcode.app
drwxr-xr-x 3 root wheel 102 4 Oct 17:34 /Applications/Xcode.app
Also doing chmod a+rwx or a=rwx is certainly not a good idea. Not all files need to be executable (x) and what's worse adding rw without thinking twice makes your system vulnerable.

Resources