I've followed all the integration steps but it always fails on the first configure step and can't find the HubSpot-Info.plist file even though it is definitely included in the project and have a target set.
HubspotTest/HubspotTestApp.swift:15: Fatal error: 'try!' expression unexpectedly raised an error: HubspotMobileSDK.HubspotConfigError.missingConfiguration
Make sure `HubSpot-Info.plist` is in the root of your Xcode project (not just inside a folder) and that it’s added to the correct target. In Xcode, select the plist file and verify that the checkbox for your app target is checked in the File Inspector.
File Name: Double-check that the filename is exactly `HubSpot-Info.plist` (case-sensitive, no extra spaces).
Ensure the plist is included in the “Copy Bundle Resources” section under your target’s Build Phases.
Sometimes Xcode caches things oddly. Try cleaning the build folder (`Shift+Cmd+K`) and rebuilding your project.
The SDK looks for the plist in the main bundle. If you’re using custom configurations or multiple bundles, make sure the file is located in the correct directory.
If you’ve checked everything above and it still isn't working, try removing and re-adding the plist file to your project. Also, ensure you’re not accidentally excluding the file in your build settings.
Let me know if any of these steps help, or if you’re still stuck. Happy to dig deeper!
Glad I could help. Solving HubSpot puzzles is what we do. Ernesto // GiantFocal Found this answer helpful? Marking it as the solution helps both the community and me - thanks in advance!
Make sure `HubSpot-Info.plist` is in the root of your Xcode project (not just inside a folder) and that it’s added to the correct target. In Xcode, select the plist file and verify that the checkbox for your app target is checked in the File Inspector.
File Name: Double-check that the filename is exactly `HubSpot-Info.plist` (case-sensitive, no extra spaces).
Ensure the plist is included in the “Copy Bundle Resources” section under your target’s Build Phases.
Sometimes Xcode caches things oddly. Try cleaning the build folder (`Shift+Cmd+K`) and rebuilding your project.
The SDK looks for the plist in the main bundle. If you’re using custom configurations or multiple bundles, make sure the file is located in the correct directory.
If you’ve checked everything above and it still isn't working, try removing and re-adding the plist file to your project. Also, ensure you’re not accidentally excluding the file in your build settings.
Let me know if any of these steps help, or if you’re still stuck. Happy to dig deeper!
Glad I could help. Solving HubSpot puzzles is what we do. Ernesto // GiantFocal Found this answer helpful? Marking it as the solution helps both the community and me - thanks in advance!