alibaba / alibaba/HandyJSON

Could not build Objective-C module 'HandyJSON'

Open
#431 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

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

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Podfile configuration shown for the CallKitExample and Sharing app-extension targets, then reproduce the “Could not build Objective-C module 'HandyJSON'” failure and capture the complete build output. Done means identifying a confirmed cause and obtaining a successful app-extension build.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c, swift
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.