adjust / ios_sdk

This is the iOS SDK of
http://www.adjust.com
MIT License
617 stars 287 forks source link

Umbrella header cannot be found using cocoa pods #728

Open egarni opened 2 weeks ago

egarni commented 2 weeks ago

Hello, I'm trying to update to version 5 using CocoaPods, and I'm getting this error:

Pods/Adjust/ModuleMap/module.modulemap:2:19: error: umbrella header 'AdjustSdk.h' not found
  umbrella header "AdjustSdk.h"
                  ^
<unknown>:0: error: could not build Objective-C module 'AdjustSdk'

Anything you are aware of?

Aditi3 commented 2 weeks ago

Hi @egarni ,

Could you try running pod update command for your application and let us know if that helps?

egarni commented 1 week ago

Still the same Screenshot 2024-09-04 at 08 32 58

genadyb commented 5 days ago

Hello, @egarni. In order to fully understand the issue, we would like to ask you to provide us with more details about your integration.

We will try to understand the issue and help you as fast as possible. Thank you.

egarni commented 4 days ago

Here a simplified podfile showing how we integrate:

source 'https://cdn.cocoapods.org/'
platform :ios, '13.0'
inhibit_all_warnings!
use_frameworks!

workspace 'kry'

target "kry" do
    pod 'Firebase/Crashlytics'
    pod 'Adjust'

    target "kry-tests" do
        inherit! :search_paths
    end
end

target "CoreLibrary" do
    pod 'Adjust'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '5.9'
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0'
        end
        # Xcode 14 beta fix: https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-1201465446
        if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
          target.build_configurations.each do |config|
              config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
          end
        end
    end
end

The main app kry, has a dependency to another library CoreLibrary, and adjust is linked in both

genadyb commented 2 days ago

@egarni Thank you for the information. We will re-check it shortly and let you know.

genadyb commented 21 hours ago

Hello, @egarni. We've tried to reproduce your issue, but unfortunately without success. The Swift App integrating 4.38.4 is successfully updated to Adjust V5 after the pod update. Is there any chance that some of your Podfile configuration is missing after you simplified it? Thank you.