You should also configure the paths for the "Additional Libraries" and "Shared Modules".
Are you using an "Ad-Hoc" or an "App Store Connect" distribution profile? You should use "Ad-Hoc" for development and testing and "app store connect" when you are ready to upload to the App Store for publishing.