Can't find Pods.modulemap - looking in wrong directory
The solution that worked for me was:
First step:
(this step may no longer be needed in Xcode 9.x and newer)
- Open Xcode
- Click Window (Menu Bar)
- Click Projects
- Remove all projects (e.g. use backspace)
- Close Xcode
Second Step:
- Open a terminal app
cd ~/Library/Developer/Xcode/DerivedData
rm -rf Build/*
see below if you have a customized build locationrm -rf ModuleCache/*
- Close a terminal app
Third Step:
- Open Xcode
- Product > Clean
- Product > Run
Source: https://stackoverflow.com/a/30752152/756976
If you have defined a custom build location:
- Go with Finder or the Terminal to the location of the build files. The location for these files is defined in Xcode. To check where these files are:
- Open Xcode
- Go to
Settings -> Locations -> Derived Data
- Go to that location and delete the
Build
folder
Edit: June 9, 2016
It is also possible that this resolves your problem:
By default the clean of Xcode, does not delete everything, by going to Product
, pressing the ALT
-key, the Clean
-button will change to Clean Build Folder...
.
Q: Dependency Analysis Error after swift2 convert to swift3
Later, I learned that, IQKeyboardManager
in swift3
has changed its name to IQKeyboardManagerSwift
in its version 4.0.7
:
the solution is in the podfile
, add :
pod 'IQKeyboardManager', '~> 4.0.6'
pod 'IQKeyboardManagerSwift', '~> 4.0.7'
and install pods, will solve the issue.
iOS App CocoaPod Blues: Podfile not pulling in Frameworks any more
I rebooted my Mac and reran the pod install and XCode build for the App and it worked just fine..
So in this situation a simple reboot helps.
Add import to module_map or umbrella header
By the way, I found the solution! /p>
I created the custom umbrella header — MyPod/Sources/MyPod-umbrella.h
.
And added imports of pods which I want to be available with import MyPod
:
@import MyAnotherPod;
Then I created the custom modulemap — MyPod/MyPod.modulemap
:
framework module MyPod {
umbrella header "MyPod-umbrella.h"
export *
}
And finally in ./MyPod.podspec
:
# Add MyPod-umbrella.h to sources
s.source_files = "#{s.name}/Sources/**/*.{swift,h}"
# Select custom module map
s.module_map = "#{s.name}/#{s.name}.modulemap"
After these changes I just can write:
import MyPod
// And it also imports MyAnotherPod like
// import MyAnotherPod
Pod install GPUImage does not work
it's my bad, i got the solution:
You then need to add a new Copy Files build phase, set the Destination
to Frameworks, and add the GPUImage.framework build product to that.
This will allow the framework to be bundled with your application
(otherwise, you'll see cryptic "dyld: Library not loaded:
@rpath/GPUImage.framework/GPUImage" errors on execution).
Related Topics
How to Add My App to the Share Sheet Action
How to Pause and Resume Uiview.Animatewithduration
What Exactly Does 'Pod Repo Update' Do
Error While Build Project Xcode Says:"You Don't Have Permission"
Autolayout to Keep View Sizes Proportional
How to Draw a Line in Sprite-Kit
Automatic Signing Is Unable to Resolve an Issue with the "Projectname" Target's Entitlements File
How to Get the 3D View of UI in Xcode 6
Gcd VS Performselectorinbackground/Performselectoronmainthread
Re-Authenticating User Credentials Swift
Getting Device Id or MAC Address in iOS
How to Use Cocoapods When Creating a Cocoa Touch Framework
Align Button Image to Right Edge of Uibutton
Removing from Array During Enumeration in Swift
Wkwebview Didn't Finish Loading, When Didfinishnavigation Is Called - Bug in Wkwebview