HandyJSON icon indicating copy to clipboard operation
HandyJSON copied to clipboard

Could not build Objective-C module 'HandyJSON'

Open fukemy opened this issue 4 years ago • 2 comments

hi, i got this problem when using handyjson in app extension, can someone help?

podfile:

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'
install! 'cocoapods', :disable_input_output_paths => true
target 'CallKitExample' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for CallKitExample
  ...
  pod 'HandyJSON', '~> 5.0.0'
  
  post_install do |installer|
    installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
  #      config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf'
#        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'

#          config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = '$(inherited)'
#      config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] = "NO"
          config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
          config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'PJ_AUTOCONF=1'
          config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'

      end
    end
  end
end


target 'Sharing' do
    use_frameworks!
    inherit! :search_paths
  ...
  pod 'HandyJSON'
end

fukemy avatar Jun 07 '21 10:06 fukemy

@fukemy do you solve it please?

videni avatar May 27 '25 03:05 videni

Too long time i dont remember sorry, i leaved this project

fukemy avatar May 27 '25 03:05 fukemy