Skip to content
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

Unable to export the iOS Archieve using Cocoapods version 1.10.2 #1509

Closed
ghost opened this issue Aug 27, 2021 · 6 comments
Closed

Unable to export the iOS Archieve using Cocoapods version 1.10.2 #1509

ghost opened this issue Aug 27, 2021 · 6 comments

Comments

@ghost
Copy link

ghost commented Aug 27, 2021

Describe the bug
Currently using version ^8.1.0 and Cocoapods version 1.10.2 and as we are using this version 1.10.2 we are not able to export the Ios build. Now previously we found solution like dump the version to 1.9.3 and then everything started working again but now we have added few libraries like AppFlyer which must require Cocoapods version 1.10 or grater. So if we dump the version
then we have issue with AppFlyer and other libraries and if we use 1.10.2 version then we have issue with mapbox.
We tried below thing but non of that work.

  1. If we are using latest version @react-native-mapbox-gl/maps: 8.3.0 getting crash using cocoapods version 1.10.2 (Here we updated the version of mapbox library)
  2. Ifwe are using version @react-native-mapbox-gl/maps: 8.1.0 did not crash, but not able to export the iOS Archieve using Cocoapods version 1.10.2.
  3. Ifwe are using version @react-native-mapbox-gl/maps: 8.1.0 did not crash, but getting an issue with AppsFlyer and Cocoapods version 1.9.3.
    To Reproduce
    Use version 8.1.0 with Cocoapods version 1.10.2

Versions (please complete the following information):

  • Platform: IOS
  • Platform OS: Mac
  • Device: Iphone 11 (Simulator)
  • Emulator/ Simulator: Yes
  • Dev OS: [e.g. OSX 11.0.1, Win10]
  • react-native-mapbox-gl Version 8.1.0
  • Mapbox GL version [e.g. 6.3.0]
  • React Native Version 0.63.3

Additional context
I am attaching two screenshots one for pod file and another one when we are using version 8.3.0 that crash issue screenshot. Also we tried look into similar issues like this https://github.com/react-native-mapbox-gl/maps/issues/1097 but it did not worked. Any help would be appriciated.
Screenshot_14
Screenshot_15

@ferdicus
Copy link
Member

hi, did you try building the example project?

Also, please do not share screenshots but actual text files of your configs.

Did you make sure to go through the iOS install steps again, once you updated?
The installation guide changes quite dramatically from one version/flavor to the other

@ghost
Copy link
Author

ghost commented Sep 2, 2021

Hi, Thanks for your quick response so when we tried to create different project then everything works fine after adding pre and post install step in podfile. But in current project where we have many other used library also there its not working with cocoapods version 1.10.2. Could you please look into the pod file code i am attaching with this comment.
Podfile

platform :ios, '12.0'

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

use_frameworks!
dynamic_frameworks = ['InsiderMobile', 'InsiderMobileAdvancedNotification', 'Mapbox-iOS-SDK']

pre_install do |installer|
installer.pod_targets.each do |pod|
if !dynamic_frameworks.include?(pod.name)
# puts "Overriding the static_framework? mothod for #(pod.name)"
def pod.static_framework?
true
end
def pod.build_type;
Pod::BuildType.static_library
end
end
end
end

target 'TamamAppClient' do
config = use_native_modules!
$RNAppsFlyerStrictMode=true
use_react_native!(:path => config["reactNativePath"])
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec"
pod 'Permission-LocationWhenInUse', :path => "#{permissions_path}/LocationWhenInUse.podspec"
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
pod 'RNExitApp', :path => '../node_modules/react-native-exit-app'
pod 'RNAudioRecorderPlayer', :path => '../node_modules/react-native-audio-recorder-player'

end

target 'InsiderNotificationContent' do
inherit! :search_paths
pod "InsiderMobileAdvancedNotification"
end

target 'InsiderNotificationService' do
inherit! :search_paths
pod "InsiderMobileAdvancedNotification"
end

@ferdicus
Copy link
Member

ferdicus commented Sep 6, 2021

hi 👋🏿,
cocoapods 1.10.X also works with mapbox in a clean project?
Just asking, because you mentioned a clean project builds fine...

We're using mapbox in a big production project with 1.10.1 and didn't have build issues so far.
However, we also do not use use_framework! - maybe that'll lead to issues - I'm not sure though, just guessing, not really a native iOS/ Android person 🤷🏿

@buog
Copy link

buog commented Sep 16, 2021

I'm actually getting the same issue but with version 8.2.

@ferdicus what is your mapbox version?

@ferdicus
Copy link
Member

in our production app we're using:
react-native-mapbox-gl/maps: 8.3.0
native mapbox ios SDK: 6.3.0

You might want to update your native SDK dependencies and try again,
if you are using the default ones, then you're on 5.8.0 - which is kinda old

@ferdicus
Copy link
Member

closing - please drop another comment here, if you still experience the same issue and we can further investigate.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants