I am getting compile error when I added a framework into my app. Framework Feature1
is built successfully but from module App
import is not working.
How to solve this issue?
I am getting compile error when I added a framework into my app. Framework Feature1
is built successfully but from module App
import is not working.
How to solve this issue?
There are several potential misconfigurations the issue can arise for,
.xcworkspace
but not .xcodeproj
file. Also make sure you have build Feature1
first before you build App
.App
s deployment target is set to 9.0
, Feature1
s deployment target also need to be set to 9.0
.App
) and your used framework (Feature1
) have same set of configurations. i.e. If your Project has three configurations, Debug
, Release
, ReleasePremium
than your Framework also need to have three configurations Debug
, Release
, ReleasePremium
. Also make sure that the archive configuration is set same for both App
and Feature1
. i.e. if your App
s archive scheme is set to ReleasePremium
, your Fearure1
s archive scheme also need to be set into ReleasePremium
.Feature1
in each .swift
files when its already added in the Bridging-Header.h
.#use_frameworks!
into use_frameworks!
from you Podfile
. Sometime re installing pod works if Feature1
has any dependency on pods.