iCepa / Tor.framework

Tor framework for the iCepa project
Other
249 stars 55 forks source link

Tor.framework signing is failing in XCode #66

Closed Fonta1n3 closed 4 years ago

Fonta1n3 commented 4 years ago

Out of nowhere I am getting the following error:

A shell task (/usr/bin/xcrun codesign --force --sign - --preserve-metadata=identifier,entitlements /Users/peter/Library/Developer/Xcode/DerivedData/BitSense-fyruymgswhsipuehjwgoxxhqeswv/Build/Products/Debug-iphonesimulator/BitSense.app/Frameworks/Tor.framework) failed with exit code 1:
/Users/peter/Library/Developer/Xcode/DerivedData/BitSense-fyruymgswhsipuehjwgoxxhqeswv/Build/Products/Debug-iphonesimulator/BitSense.app/Frameworks/Tor.framework: replacing existing signature
/Users/peter/Library/Developer/Xcode/DerivedData/BitSense-fyruymgswhsipuehjwgoxxhqeswv/Build/Products/Debug-iphonesimulator/BitSense.app/Frameworks/Tor.framework: resource fork, Finder information, or similar detritus not allowed

Command PhaseScriptExecution failed with a nonzero exit code

There was a bunch of warnings regarding the Tor docs, I was trying to silence those warnings and thought that caused the error. So I did carthage update --platform iOS and everything seemed ok.

The issue then came up again, I tried xattr -cr . in the root of my project and that worked once but after running again in Simulator I get the above. No idea if it is an XCode bug or a Tor bug... Please let me know if you have any ideas?

Just for additional info I have the following in my Cartfile: binary "https://icepa.github.io/Tor.framework/Tor.json" == 403.5.1

Fonta1n3 commented 4 years ago

Looks like this was some bizarre combination of a carthage and/or XCode issue and nothing to do with the framework.