-
-
Notifications
You must be signed in to change notification settings - Fork 836
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
Add multi-target iOS configuration #753
Comments
@chist3r First, please switch to the new linking system: https://github.com/zoontek/react-native-permissions/releases/tag/3.7.0 Then, for now I suggest to activate all used permissions ( You can also duplicate the whole |
Thanks @zoontek Noticed you're using |
Actually I removed it in But I could ship a new version that read |
That would be great, thanks @zoontek |
@chist3r It's available: https://github.com/zoontek/react-native-permissions/releases/tag/3.7.3 |
Hi, minor comment: let config = JSON.parse(pkg)[CONFIG_KEY];
if (!config && existsSync(jsonPath)) {
const text = await fs.readFile(jsonPath, 'utf-8');
config = JSON.parse(text);
} This leads to the package.json syntax being the same as in the Readme: {
"reactNativePermissionsIOS": [
]
} but in the |
Bug summary
Hello,
Recently working on a multi-target app that would need to include some permissions in all targets and a different permission in single target
As you can see in the below Podfile, I have included 3 permissions in both targets and camera permission only in MyTarget2
When building MyTarget2 it works fine. But when build MyTarget1 it fails with error
Undefined symbol: _OBJC_CLASS_$_RNPermissionHandlerCamera
I believe this happens because cocoapods will collect libraries from all targets and them to header search paths for all targets. And while library implementation uses
__has_include
it will always resolve true in all targets because library header in the search path but the library itself is not included.Library version
3.7.2
Environment info
Steps to reproduce
Reproducible sample code
https://github.com/chist3r/RNPermissionsMultiTarget
The text was updated successfully, but these errors were encountered: