Expand my Community achievements bar.

SOLVED

Underlying Objective-C module 'AEPServices' not found

Avatar

Level 1

Hello,
I'm trying to implement AEP Mobile SDK packages for react native but IOS build fails with :

  • underlying Objective-C module 'AEPServices' not found.
  • failed to verify module interface of 'AEPServices' due to the errors above; the textual interface may be broken by project issues or a compiler bug
1 Accepted Solution

Avatar

Correct answer by
Level 1

Thanks for the quick reply,
I solved the issue adding following piece of code in the Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |t|
    if t.name.start_with?("AEP")
      t.build_configurations.each do |bc|
          bc.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -no-verify-emitted-module-interface'
      end
    end
  end
end

View solution in original post

2 Replies

Avatar

Correct answer by
Level 1

Thanks for the quick reply,
I solved the issue adding following piece of code in the Podfile:

post_install do |installer|
  installer.pods_project.targets.each do |t|
    if t.name.start_with?("AEP")
      t.build_configurations.each do |bc|
          bc.build_settings['OTHER_SWIFT_FLAGS'] = '$(inherited) -no-verify-emitted-module-interface'
      end
    end
  end
end