-
Re: Xcode 8 Beta error launching simulator
FxFactory Jun 15, 2016 5:53 AM (in response to Besqware)I cannot offer a solution, but I am seeing the same problem when signing a macOS Framework. The target codesigns perfectly with Xcode 7 on the same system. I have so far been unable to understand exactly what "detritus" code signing is complaining about.
-
Re: Xcode 8 Beta error launching simulator
abrmecom Jun 15, 2016 2:19 PM (in response to FxFactory)Check your build target byt running:
ls -alF@
... in the build output folder. I think this might have something to do with the com.apple.FinderInfo which seems to be attached to my build products - but I can't delete using:
xattr -c
-
Re: Xcode 8 Beta error launching simulator
FxFactory Jun 15, 2016 2:35 PM (in response to abrmecom)Thanks for the tip, that command shows that no extraneous FinderInfo is associated with the object code. The only file in the framework directory that does have FInderInfo is .DS_Store:
-rw-r--r--@ 1 gds wheel 6148 Jun 15 15:37 .DS_Store
com.apple.FinderInfo 32
Could that be what’s tripping codesign? Seems odd...
Contrary to the original poster, my project is entirely Objective-C for OS X. Other frameworks in the same project are being codesigned fine.
-
Re: Xcode 8 Beta error launching simulator
Besqware Jun 15, 2016 5:20 PM (in response to abrmecom)I tried your suggestion and I also got the following result in the Intermediate build folder:
-rw-r--r--@ 1 Ben staff 6148 Jun 15 20:11 .DS_Store
com.apple.FinderInfo 32
So, any thoughts on how to resolve this if this is the culprit?
-
-
-
Re: Xcode 8 Beta error launching simulator
coder14 Jun 17, 2016 12:13 PM (in response to Besqware)I fixed this issue by removing the resource info on some photoshop created png files that I manually copy into my application bundle.
You can use "ls -al@ file_names" to see the extra finder and resource info.
You can use "xattr -c file_names" to remove this info.
-
Re: Xcode 8 Beta error launching simulator
FxFactory Jun 17, 2016 10:24 AM (in response to coder14)Same here! A PNG file in the bundle happened to have a few bytes of Finder Info associated with it. Calling xattr -d com.apple.FinderInfo (IIRC) on that file fixed the problem.
-
Re: Xcode 8 Beta error launching simulator
UIKid Oct 11, 2016 9:10 PM (in response to FxFactory)Wow, thanks. I would have never figured that out!
For those unfamiliar with the command line, open Terminal.app, type "cd" and a space, then drag the folder where your file is, from a Finder window right into Terminal. The path to the folder will be entered after the "cd" part. Next, hit enter, then type:
xattr -d com.apple.FinderInfo <your filename here>
...and hit enter again.
-
-
Re: Xcode 8 Beta error launching simulator
Besqware Jun 17, 2016 10:48 AM (in response to coder14)Thank you. That worked. Found a random .png in art.scnassets that had a hidden Resource Fork on it. Once I got rid of that resource fork it compiled.
-
Re: Xcode 8 Beta error launching simulator
cpmac Nov 28, 2016 8:53 AM (in response to coder14)This seems to have helped people. I have this problem but I don't understand the solution.
-
-
Re: Xcode 8 Beta error launching simulator
sophiec28 Jul 18, 2016 2:01 AM (in response to Besqware)For me it was because my project folder was within a folder that synced to iCloud, moving it outside this folder into one that isn't synced and deleting the derived data folder fixed the issue.
-
Re: Xcode 8 Beta error launching simulator
TimeVision Aug 7, 2016 3:08 PM (in response to Besqware)This helped a lot. Same thing for me. XCode 8 beta 4 suddenly started complaining about this. Here is how I resolved it in details.
The error was
/Users/timevision/Library/Developer/Xcode/DerivedData/MyApp-fwnvtcqqgyeoaqbsvmfeuzvjiqdg/Build/Products/Debug-iphoneos/MyApp.app: resource fork, Finder information, or similar detritus not allowed
So basically do the following
cd "/Users/timevision/Library/Developer/Xcode/DerivedData/MyApp-fwnvtcqqgyeoaqbsvmfeuzvjiqdg/Build/Products/Debug-iphoneos/MyApp.app"
ls -al@ *
This will display any file that has extended attributes set. Look for any file that has @ at the end of the attributes. Mine was,
-rw-r--r--@ 1 timevision staff 9014 Aug 6 22:12 AppIcon20x20@3x.png
com.apple.FinderInfo 32
com.apple.metadata:_kMDItemUserTags 42
Then I remembered adding this bloody new AppIcon in photoshop recently. Going back to my "Images.xcassets/AppIcon.appiconset" path I saw the file indeed has the extended attributes set.
Then I used "xattr -c *" cmd to clear all extended attributes for the icon files, and recompiled. Now XCode no longer complains, codesign works and runs fine now. Hope this helps.
-
Re: Xcode 8 Beta error launching simulator
jpw48 Aug 19, 2016 12:59 PM (in response to TimeVision)Thank you so much, I've just spent hours trying to figure out what was causing this error and your post solved it. Thank you.
-
Re: Xcode 8 Beta error launching simulator
Yagnesh_Developer Sep 21, 2016 6:24 AM (in response to TimeVision)Thank you so much . This helps me alot .
-
Re: Xcode 8 Beta error launching simulator
GeoffC Sep 22, 2016 6:50 AM (in response to TimeVision)Thankyou for the steps, took me a few attempts to get into the path but once I did, and went into \Resources\ I could remove the extra info as you demonstrate. Now compiles again. Cheers
-
Re: Xcode 8 Beta error launching simulator
jankoesp Oct 1, 2016 10:53 AM (in response to TimeVision)Thank you very much...after being "sick" for a while, this solved my problem with error codesign...
But I do not understand why suddenly this appears...I mean in Xcode7 the project with working correctly, but not in Xcode8... is this a bug in the new version?
-
Re: Xcode 8 Beta error launching simulator
omine Oct 18, 2016 6:14 AM (in response to TimeVision)wow! perfect!
-
Re: Xcode 8 Beta error launching simulator
rhlnair Oct 21, 2016 10:29 PM (in response to TimeVision)thanks man for detail step
-
Re: Xcode 8 Beta error launching simulator
catarino Jan 30, 2017 5:38 AM (in response to TimeVision)You saved my sanity. Thank so much!
-
Re: Xcode 8 Beta error launching simulator
tinloy Nov 27, 2017 12:34 AM (in response to TimeVision)Thanks a lots! Althought I still don't know how to use those "ls -al@*" code to solve the problem.
But I finally know where the problem is and find the way out! Thank you again!
-
Re: Xcode 8 Beta error launching simulator
Claude31 Nov 27, 2017 4:28 AM (in response to tinloy)The way I solved it:
- open terminal
- go to the directory where the .png are (cd folder/)
- type the command after the $ prompt:
$ xattr -lr
this will list all the files attributes
$ xattr -cr
the xattr command (extension attributes), with c parameter (to clear extended attributes) on those files will delete the extended attributes
-
-
-
Re: Xcode 8 Beta error launching simulator
Map-Pin Sep 10, 2016 12:46 PM (in response to Besqware)The easy way (which will do all png files) I used:
find . -name "*.png" -exec xattr -c {} \;
-
Re: Xcode 8 Beta error launching simulator
Rufus.li Sep 23, 2016 12:35 AM (in response to Map-Pin)This helps a lot ! Xcode 8 seems to have so many problems. I wonder if it went through UAT.
-
-
Re: Xcode 8 Beta error launching simulator
iOS_wxh Nov 24, 2016 9:56 PM (in response to Map-Pin)Thank you. This helped me, but I don't know this command means. Can you explain for me?
-