Xcode on Mavericks and Code-sign

Hello,

As the "TurboActivate.dat" file must be at the same location of the executable, the file must be now code-signed if you compile with Xcode on Mavericks. I found 2 solutions :

1) Creating a "Run Script" phase to sign the DAT file (codesign --verbose --force --sign "Developer ID Application: MyName" "${BUILT_PRODUCTS_DIR}"/"${EXECUTABLE_FOLDER_PATH}/TurboActivate.dat")

2) Place the DAT file in the "Resources" folder, then use PDetsFromPath() to load it manually ( PDetsFromPath( [[[NSBundle mainBundle] pathForResource:@"TurboActivate" ofType:@"dat"] UTF8String] ); )

The first solution is simplier as it doesn't change much the code, but you need to be connected to internet to code-sign the DAT file.The second method doesn't need an internet connection, but it requires code change, and diminish the simplicity of TurboActivate.

What's the best one ? Is there a better strategy ?Thank you. Philippe

, edited

We'll have to look into this deeply to give you a better answer (and to update our documentation), but if either works, then use the one that's easiest for you.

I'd recommend #2 (use PDetsFromPath() ) because it's cleaner and doesn't require an additional build step, but do whatever is easier for you.

Hello Wyatt,

The 2 solutions works, but it's not very "clean", at least for me. Please let me know your progress while you dig this issue.Also, I had to code-sign the library "libTurboActivate.dylib" ...

Best. Philippe

Also, I had to code-sign the library "libTurboActivate.dylib" ...

We'll sign all of our upcoming builds with our certificate.