From the topic above, I have trouble building my apps on xcode. I keep on getting Framework not found FBLPromises error. How do I fix this error, tried to googling on solution but found nothing.
Thank you everyone, I manage to resolve the Issues, I have to force update my cocoapods directly into my xcode project. Now I dont have the framework error anymore.
The problem was solved in about a week.
Summary: the problem is in cocoa pods.
For the solution, various combinations of project settings were sorted out. Weāre going to a unity cloud build, so we couldnāt manipulate the projectās xcode directly.
Added post-processing:
[PostProcessBuild(45)] //must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
{
if (target != BuildTarget.iOS)
return;
Debug.Log(
$"{nameof(PodFilePostProcess)} Start Post Process Build");
var content = "\n\npost_install do |installer|\n" +
"installer.pods_project.targets.each do |target|\n" +
" target.build_configurations.each do |config|\n" +
$" config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{PlayerSettings.iOS.targetOSVersionString}'\n" +
" config.build_settings['ENABLE_BITCODE'] = 'NO'\n" +
" end\n" +
" end\n" +
"end\n";
using var streamWriter = File.AppendText(Path.Combine(buildPath, "Podfile"));
streamWriter.WriteLine(content);
Debug.Log(
$"{nameof(PodFilePostProcess)} End success Post Process Build");
}
And set in the ios resolver settings:
use_framevorks! :linkage => :static