There is no such module even after installing the frame using cocoa pods

I am trying to integrate a structure / library to create attractive forms in iOS using this: https://github.com/ortuman/SwiftForms

I managed to install Cocoapods. I also added the following to my subfile (in my project directory):

source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks! pod 'SwiftForms' 

And run the command: $ pod install

But in my class, I still get "There is no such SwiftForms module." enter image description here

And what red means here: enter image description here

When I open xworkspace, I get the following errors: enter image description here

+5
source share
2 answers

I just created an example application to understand your problem.

Just follow these steps.

Step .1 Updated my Subfile with SwiftForms Lib

platform: ios, '8.0'

use_frameworks!

pod 'SwiftForms'

Step 2. Open the terminal in the parent folder of the submap and execute the command

pod install

Step 3. open the project_name.xcworkspace file to open the project using modules

Step 4. Go to project settings → Build phases → Add SwiftForms.framework

enter image description here

Step 5. Now go to Viewcontroller.swift and import

 import UIKit import SwiftForms class ViewController: FormViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } } 

It works like a charm !! let me know if you find any problems in this.

+4
source

By setting only "Build Active Architectures" to No, in the main project and the Pods subproject, I managed to fix the above error.

fooobar.com/questions/1245298 / ...

+1
source

Source: https://habr.com/ru/post/1245294/


All Articles