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

pod search 还找不到,可以发布上去么? #15

Open
OHeroJ opened this issue Oct 12, 2020 · 0 comments
Open

pod search 还找不到,可以发布上去么? #15

OHeroJ opened this issue Oct 12, 2020 · 0 comments

Comments

@OHeroJ
Copy link

OHeroJ commented Oct 12, 2020

- NOTE  | [iOS] [gobelieve/imlib] xcodebuild:  gobelieve/imlib/db/SQLPeerMessageDB.m:2:9: fatal error: 'NSString+JSMessagesView.h' file not found
- NOTE  | [iOS] [gobelieve/imlib] xcodebuild:  gobelieve/imlib/db/SQLGroupMessageDB.m:11:9: fatal error: 'NSString+JSMessagesView.h' file not found

依赖应该有问题。

  • 将 NSString+JSMessagesView.h 和 NSString+JSMessagesView.h 移动到 imsdk 目录下即可。
  • 将 FileCache.h 和 FileCache.m 移动到 imsdk 目录下
  • 需要将 imkit 的配置进行修改
s.subspec 'imsdk' do |sp|
     sp.public_header_files = 'Classes/imsdk/*.h'
     sp.source_files        = 'Classes/imsdk/*.{h,m,c}'
     sp.pod_target_xcconfig = {
       'OTHER_LDFLAGS' => '-ObjC'
     }
 end

 s.subspec 'imlib' do |sp|
    sp.source_files     = 'Classes/imlib/**/*.{h,m,c}'
    sp.dependency 'flt_im_plugin/imsdk'
    sp.dependency 'SDWebImage', '~> 5.1.0'
    sp.dependency 'FMDB', '~> 2.7.0'
    sp.dependency 'Masonry', '~>1.1.0'
 end

 s.subspec 'imkit' do |sp|
   sp.vendored_libraries = 'Classes/imkit/amr/*.a'
   sp.source_files     = 'Classes/imkit/**/*.{h,m,c}'

   sp.resource         = [
     'Classes/imkit/imKitRes/sounds/*.aiff',
     'Classes/imkit/imKitRes/gobelieve.xcassets',
     'Classes/imkit/imKitRes/Emoji.xcassets',
     'Classes/imkit/imKitRes/gobelieve.db'
   ]

   sp.pod_target_xcconfig = {
       'OTHER_LDFLAGS' => '$(inherited) -all_load'
   }

   sp.dependency 'flt_im_plugin/imsdk'
   sp.dependency 'flt_im_plugin/imlib'

   sp.dependency 'SDWebImage', '~> 5.1.0'
   sp.dependency 'Toast', '~> 4.0.0'
   sp.dependency 'MBProgressHUD', '~> 0.9.1'
   sp.dependency 'FMDB', '~> 2.7.0'
   sp.dependency 'Masonry', '~>1.1.0'
 end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant