-
-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable IOS_USE_PRECOMPILED_FIRESTORE_POD does not work on 14.2.1-cli #759
Comments
Hi @dpa99c, it seems the merge on plugin.xml fails. @BlaineM-SeriouslyRAD Have you too problem with the precompiled version? At our side, the generated IPA file can't be install on our device. We have instant crash. If we use the official pod, no problem. Thanks ! |
@TiBz0u Due to this issue with the cli version, we're using the non-cli version with the official pod (i.e. not pre-compiled). Consequently, we haven't experienced an issue with instant crashing on devices. |
@RobYed can you share what you added in that |
@rex-iotum sure! It's very basic with a hard-coded version number, but might help: module.exports = (context) => {
// Make sure ios platform is part of build
if (!context.opts.platforms.includes('ios')) {
return;
}
const iosPlatformRoot = path.join(context.opts.projectRoot, 'platforms/ios');
const podfilePath = path.join(iosPlatformRoot, 'Podfile');
if (!fs.existsSync(podfilePath)) {
console.log(
`'${podfilePath}' does not exist. FirebaseFirestore fix skipped.`
);
return;
}
const preCompiledVersionString =
"pod 'FirebaseFirestore', :tag => '9.1.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git'";
let podfileContent = fs.readFileSync(podfilePath, 'utf-8');
if (podfileContent.includes(preCompiledVersionString)) {
podfileContent = podfileContent.replace(
preCompiledVersionString,
"pod 'FirebaseFirestore', '9.1.0'"
);
fs.writeFileSync(podfilePath, podfileContent, 'utf-8');
console.log('Installing non pre-compiled FirebaseFirestore...');
return execa('pod', ['install', '--verbose'], {
cwd: iosPlatformRoot,
});
} else {
console.log('Could not set non pre-compiled FirebaseFirestore');
}
}; |
Hi @RobYed. In all case, you'll need a fork before the fixing release. EDIT : I just detect that the current |
Should be fixed in |
Bug report
CHECKLIST
Current behavior:
Using the 14.2.1-cli build, the pre-compiled Firestore pod is always used regardless of the variable
IOS_USE_PRECOMPILED_FIRESTORE_POD
.The non-cli 14.2.1 version works fine.
Comparing
plugin.xml
between 14.2.1-cli and 14.2.1 reveals a number of differences including:14.2.1-cli:
<pod name="FirebaseFirestore" git="https://github.com/invertase/firestore-ios-sdk-frameworks.git" tag="9.1.0"/>
14.2.1
<pod name="Firebase/Firestore" spec="9.1.0"/>
Expected behavior:
The variable
IOS_USE_PRECOMPILED_FIRESTORE_POD
should control whether the pre-compiled Firestore pod is used.Steps to reproduce:
Add 14.2.1-cli into a project without specifying the variable (defaults to false).
Check the PodFile - it states:
pod 'FirebaseFirestore', :tag => '9.1.0', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git'
Environment information
11.0.0
ios 6.2.0
Monterey 12.5.1
16.17.0
The text was updated successfully, but these errors were encountered: