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

Missing required module 'PINCache' #115

Closed
chitvan832 opened this issue Nov 3, 2020 · 7 comments
Closed

Missing required module 'PINCache' #115

chitvan832 opened this issue Nov 3, 2020 · 7 comments

Comments

@chitvan832
Copy link

chitvan832 commented Nov 3, 2020

In Xcode 12.1
After adding:
pod 'Giphy', :podspec => 'https://s3.amazonaws.com/sdk.mobile.giphy.com/SDK/2.0.7/Giphy.podspec'
and installing i am seeing error Missing required module 'PINCache'. Please check screenshot.
Screenshot 2020-11-03 at 6 01 56 PM

This solution didn't work
#96 (comment)

@cgmaier
Copy link
Contributor

cgmaier commented Nov 3, 2020

@chitvan832 do you have the use_frameworks! flag in your Podfile?

@chitvan832
Copy link
Author

Adding use_frameworks solved the problem. Thanks

@dylmye
Copy link

dylmye commented Dec 16, 2020

I'm having this issue and adding use_frameworks! meant I could no longer run pod install / upgrade, I'd get CocoaPods/CocoaPods#7234 and the solution to that is to comment out use_frameworks!. Should I make a new issue?
image

(I have control over that module using Giphy, tried setting static_framework to true and false, tried with and without use_frameworks!, no success)

Thanks

@cgmaier
Copy link
Contributor

cgmaier commented Dec 16, 2020

hey @dylmye can you please confirm your version of Xcode as well as the GIPHY SDK version?

@cgmaier cgmaier reopened this Dec 16, 2020
@dylmye
Copy link

dylmye commented Dec 16, 2020

Hiya

XCode 12.2 12B45b
Giphy SDK 2.0.9 (I think that's what you mean?)

Thank you

@dylmye
Copy link

dylmye commented Dec 17, 2020

So I made a new react native project with npx react-native init, added the react-native-giphy-keyboard repo with a fork I made with no changes so I can make changes to the project. So it should be reproducible.

If I use use_modular_headers! I get this instead:

Stack trace
info Found Xcode workspace "FOO.xcworkspace"
info Building (using "xcodebuild -workspace FOO.xcworkspace -configuration Debug -scheme FOO -destination id=...")

❌  /Users/.../Code/RnTest/FOO/ios/Pods/Headers/Public/glog/glog/logging.h:512:1: import of module 'glog.glog.log_severity' appears within namespace 'google'

#include "glog/log_severity.h"
                   ^~~~~~~

[... compile c logs...]

** BUILD FAILED **


The following build commands failed:
	CompileC /Users/.../Library/Developer/Xcode/DerivedData/FOO-axlrpsnlogicwjcpssjljtrkzlrr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Folly.build/Objects-normal/x86_64/String.o /Users/.../Code/RnTest/FOO/ios/Pods/Folly/folly/String.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Or if I do pod 'Giphy', :modular_headers => true I get this:

Stack trace
info Found Xcode workspace "FOO.xcworkspace"
info Building (using "xcodebuild -workspace FOO.xcworkspace -configuration Debug -scheme FOO -destination id=...")

▸ Compiling EnumExtensions.swift

❌  /Users/.../Code/RnTest/FOO/node_modules/@.../react-native-giphy-keyboard/ios/EnumExtensions.swift:2:8: missing required module 'PINCache'

import GiphyUISDK
       ^


▸ Compiling RNGiphyKeyboard.swift

❌  /Users/.../Code/RnTest/FOO/node_modules/@.../react-native-giphy-keyboard/ios/EnumExtensions.swift:2:8: missing required module 'PINCache'

import GiphyUISDK
       ^

CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'react-native-giphy-keyboard' from project 'Pods')

CompileSwift [...] /Users/.../Code/RnTest/FOO/node_modules/@.../react-native-giphy-keyboard/ios/EnumExtensions.swift:2:8: error: missing required module 'PINCache'
import GiphyUISDK
       ^
[...]

** BUILD FAILED **


The following build commands failed:
CompileSwift normal x86_64 /Users/.../Code/RnTest/FOO/node_modules/@.../react-native-giphy-keyboard/ios/EnumExtensions.swift
CompileSwift normal x86_64 /Users/.../Code/RnTest/FOO/node_modules/@.../react-native-giphy-keyboard/ios/RNGiphyKeyboard.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
CompileSwift normal x86_64 /Users/.../Code/RnTest/FOO/ios/Pods/YogaKit/YogaKit/Source/YGLayoutExtensions.swift

If I try to use use_frameworks! when running pod install I get:

[!] The 'Pods-FOO' target has transitive dependencies that include statically linked binaries: (/Users/.../Code/RnTest/FOO/ios/Pods/CocoaLibEvent/lib/libevent.a, /Users/.../Code/RnTest/FOO/ios/Pods/CocoaLibEvent/lib/libevent_core.a, /Users/.../Code/RnTest/FOO/ios/Pods/CocoaLibEvent/lib/libevent_extra.a, /Users/.../Code/RnTest/FOO/ios/Pods/CocoaLibEvent/lib/libevent_pthreads.a, /Users/.../Code/RnTest/FOO/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a, and /Users/.../Code/RnTest/FOO/ios/Pods/OpenSSL-Universal/ios/lib/libssl.a)

let me know if you need any other details

@dylmye
Copy link

dylmye commented Jan 20, 2021

Using the modular headers flag and this solution fixed the issue for me.

@cgmaier cgmaier closed this as completed Jan 20, 2021
djrluna pushed a commit that referenced this issue Apr 21, 2021
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

3 participants