Header file not found in Bridging Header after upgrade to XCode 7 - ios

I have some project which I wrote using XCode 6 with iOS deployment target and which was working fine on iOS 8.
Recently I upgraded XCode to 7.0.1 (7A1001) and now I have to make some changes in mentioned project. I can't event build it.
I'm using CocoaPods and I have UIColor+BFPaperColors imported : pod 'UIColor+BFPaperColors', '~> 1.3.1'.
XCode is telling me that he can't find UIColor+BFPaperColors.h file. It's strange because I have this file in my project (Pods project in Workspace) and it was working fine with XCode 6.
What I already tried to do (but with no result) :
Convert project to latest Swift syntax (Edit -> Convert -> To latest Swift syntax...).
Set Allow non-modular includes in Framework Modules to YES.
Did pod update and pod install.
PS. Here is my Podfile.

do you use the Build Setting to set bridging header? maybe this picture will
help you

Related

framework not found .xcframework

I have created a .xcframework using Xcode 11.0 command line. And it is working fine if I simply drag and drop it on any Xcode project above Xcode 11.0. I have tried on Xcode 11.0, 11.1, 11.2.1 and it is working perfectly on them. Now I am trying to use it through Cocoapods. To do so I have created podspec file given the local path of the framework. It is installing the pods successfully as well into the project. But now when I am trying to build the project it is getting failed by saying
ld: framework not found RandomNames.xcframework
I am not sure where the problem is, because it is working fine if we use directly dragging into the project.
I have checked the framework search path, tried to pod disintegrate, clean and install them again but no success.
This is what error I am getting:
and below is my .podspec file which I am using:
It looks like they've added support for xcframeworks now and released a beta version (CocoaPods 1.9 Beta).
Try giving it a shot! :)

"failed to emit precompiled header" after downgrading Deployment target

Well This is a very common error by xcode and it has so [many] 2 answer on StackOverflow still I am facing this in a particular situation.
My project is running fine on iOS 11 Deployment target but when I try to downgrade my deployment target to iOS 10, it start to throw Module map file not found for every pod library.
What Have I tried:
Updated Podfile platform :ios, '10.0'
pod deintegrate then 'pod cleanand after that runpod install`
Clean DerivedData folder
Clean project couple of times using the combination cmd+opt+shift+k & cmd+shift+k
Check Objective-C Bridging Header.
Revert back deployment target to iOS 11 and it works on iOS 11
Removing pod which showing Module map file not found and then it's throwing build error where I have used those library.
How can I get out from this error?
P.S.:
It's a mixed project of obj-c and swift 4.2.
Xcode version 11.2.1(11B53).
Cocoapods version 1.8.4
model Map file not found
faild to emit precompiled header
From given set of information, it seems you are using color as an asset in your asset catalog like following screenshot
It requires min deployment target ios 11 to work. Stop using this feature if you want to run in ios 10.
Hope it helps.

iOS- Build failed due to obsolete method names in pod dependency files

I was trying to make a demo project which uses a POD dependency of this URL PageMenu POD install correctly but gives me many errors on building this dummy app as many methods' are renamed in latest iOS SDK and swift 4.2. I have solved this problem before on my office project but can't remember right now. Any help will be appreciable. I am attaching a screenshot with this project.
Reasons for the problem: Swift version of my project is 4.2 and I am using a library which was built in swift version 4. So some of the method's name in latest iOS SDK is renamed from Swift 4.
Solution: I need to set Swift version 4 for that pod dependency and recompile this project.
Note: Any third party pod that doesn't support the latest swift must be compiled with the supported version of swift for pod dependency

external library (pod) showing errors after updating Xcode

I've updated Xcode to the latest and all these errors came. Then I downgraded my Xcode, but the errors still there.
Open Pods project
Select Target of the pod with errors
Open Build Settings tab
Search for Swift Language Version(SWIFT_VERSION)
Set proper Swift version for the pod
Build your project again
If build fails you set wrong Swift version, so repeat from 5
If some other pod will generate errors of this kind repeat from 2
Also, you may set some Swift version for Pods project itself, to set some default version.

Module compiled with Swift 3.1 cannot be imported in Swift 3.2.3

I have a Cocoa Touch framework file which I take out regularly from my codebase. It has some helper classes which I uses in some of my projects. It was doing good before the evolution of Xcode 9.0.
When I tried that framework in a project of Xcode 9 then it shows error that the module is compiled with Swift 3.1 so I compiled the whole classes using Swift 4 and tried to use that in a application, it still shows me the above mentioned error.
If I use the same project in Xcode 8.3.2 then it works well.
If the issue is in one of external libraries then their recompilation is required. For that one way is:
Deintegrate all the pods first:
pod deintegrate
Run pod install again:
pod install
Also, clean XCode Derived Data & clean up your project.

Resources