Now i could create an archive that is correctly signed with Xcode and if i open the archive and see the content and run the app, it runs. Notice that i ve put both frameworks 4 and A. When i export to generate a package to submit for appstore and submit it. It gets rejects. If i install the application locally, using otool, i see that the app links to frameworks that exist in /usr/..../ folders. But i managed to get the frameworks copied to the package but it still does not run. I get kill 9.
-- Report --
To clarify, the app fails to launch as it is linking to frameworks that are missing.
The frameworks that are missing are:
'/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib'
'/usr/local/opt/openssl/lib/libssl.1.0.0.dylib'
'/usr/local/opt/qt/lib/QtCore.framework'
'/usr/local/opt/qt/lib/QtGui.framework'
'/usr/local/opt/qt/lib/QtNetwork.framework'
'/usr/local/opt/qt/lib/QtSql.framework'
Best Mac OS X development practices suggest using (in order)
@executable_path/
@loader_path/
@rpath/
For more information about linking frameworks, please see the following documents:
Run-Path Dependent Libraries section of Dynamic Library Programming Topics