You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to build a release version of iOS App, i keep getting an error on the script RNGoogleMobileAds that runs by 'react-native-google-mobile-ads' with the following message:
Had i look into the script itself, checking the path for Info.plist that it is using and it looks good i.e. pointing to myAppName.app file inside the derived data.
Also, this issue was only introduced recently, used to work with no problem about 3-4 weeks ago. So, i am not sure whether it is something new that was introduced with Xcode version 15.2 or what?
Interesting find BUT not an acceptable solution:
I wanted to try what is going to happen if i delete this script from "Build Phases" in Xcode and move it into my scheme to run as a 'post action' in Build phase. And this have worked!
So it is almost like the Info.plist is now not available when scripts from "Build Phase" are running and only gets added later on. But could not see anything in docs in this regards.
{
"name": "someName",
"displayName": "someName",
"react-native-google-mobile-ads": {
"android_app_id": "ca-app-pub-2345~235235", //Fake numbers for Github"ios_app_id": "ca-app-pub-235235~23552", //Fake numbers for Github"user_tracking_usage_description": "This identifier will be used to deliver personalized ads to you."
}
}
ios/Podfile
# Resolve react_native_pods.rb with node to allow for hoisting
def node_require(script)
# Resolve script with node to allow for hoisting
require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", __dir__]).strip
end
# Use it to require both react-native's and this package's scripts:
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
platform :ios, min_ios_version_supported
prepare_react_native_project!
setup_permissions([
'AppTrackingTransparency',
])
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
use_frameworks! :linkage => linkage.to_sym
end
target 'someString' do
config = use_native_modules!
# Flags change depending on the env values.
flags = get_default_flags()
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
# Upcoming versions of React Native may rely on get_default_flags(), but
# we make it explicit here to aid in the React Native upgrade process.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
:flipper_configuration => flipper_config,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
target 'SomeStaringTests' do
inherit! :complete
# Pods for testing
end
post_install do |installer|
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
target 'OneSignalNotificationServiceExtension' do
pod 'OneSignalXCFramework', '>= 5.0.0', '< 6.0'
end
android/build.gradle
No response
android/app/build.gradle
No response
android/settings.gradle
No response
AndroidManifest.xml
No response
The text was updated successfully, but these errors were encountered:
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
What happened?
Something strange started occurring recently.
When I try to build a release version of iOS App, i keep getting an error on the script RNGoogleMobileAds that runs by 'react-native-google-mobile-ads' with the following message:
Had i look into the script itself, checking the path for Info.plist that it is using and it looks good i.e. pointing to myAppName.app file inside the derived data.
Also, this issue was only introduced recently, used to work with no problem about 3-4 weeks ago. So, i am not sure whether it is something new that was introduced with Xcode version 15.2 or what?
Interesting find BUT not an acceptable solution:
I wanted to try what is going to happen if i delete this script from "Build Phases" in Xcode and move it into my scheme to run as a 'post action' in Build phase. And this have worked!
So it is almost like the Info.plist is now not available when scripts from "Build Phase" are running and only gets added later on. But could not see anything in docs in this regards.
Platforms
Only on iOS
React Native Info
Are your using Typescript?
package.json
app.json
ios/Podfile
android/build.gradle
No response
android/app/build.gradle
No response
android/settings.gradle
No response
AndroidManifest.xml
No response
The text was updated successfully, but these errors were encountered: