2

I am using GVRSDK library pod in my custom framework but if i add this some other project target its not getting import. I am using module map because the library was not getting import in custom framewotk

error: using bridging header with framework target is unsupported. Compilation Error due to adding private header in umbrella header Include of non modular header inside framework module . Next i added Module Map File it got imported in Framework swift file. If i import it in some other swift target it throwing error module not found.

2
  • Please share some images and code that you have implemented. Commented Nov 11, 2017 at 9:44
  • I created custom framework and added cocoa pod can you give steps for the correct implementation and with carthage i able to implement Commented Nov 11, 2017 at 15:37

1 Answer 1

0

You should speciafied in your Podfile for which target you wanna install your pods

target 'FrameworkName' do
    use_frameworks!
    pod 'GVRSDK'

end

After that you can add the framework to your app from Build Phases -> Embed Frameworks enter image description here

Sign up to request clarification or add additional context in comments.

6 Comments

I have specified this in my cusotm framework and its working fine in framework but if i use this some other target or project its not working
You should specify this in your target where you wanna add the custom framework. How you make the connection between your framework and the target now?
Ya this one i tried but its not working. What i am doing is i am adding custom framework .framework (this contains GVRSDK Pod library) into my target like in build phase -> Embed Frameworks
Hi, I am facing the same issue. Did you got any solution?
You can add custom framework from File > New > Target > Cocoa Touch Framework. After that in Podfile you should specify which pods you wanna use for this custom framework.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.