简体   繁体   中英

Trying to install Purelayout using cocoa pods in swift project

I am currently having problems installing Pure Layout using Cocoa Pods. Ive managed to install it fine in a blank project with no problems. But when installing into my project i keep getting the following error:

ld: framework not found PureLayout clang: error: linker command failed with exit code 1 (use -v to see invocation)

Ive had a search through stack overflow for any possible solutions and have tried adding the framework search path to the target, trying to delete cocoa pods and do a fresh install onto the project.

Initially before adding 'PureLayout' to the pod file i got a similar error:

ld: framework not found Pods

To resolve this i removed the red pod framework file from the linked library and framework folder. Which then built fine.

Thank you in advance for anyone who helps me solve this.

Below is my Podfile:

# Uncomment this line to define a global platform for your project
platform :ios, '8.1'
# Uncomment this line if you're using Swift
use_frameworks!

target '****' do

pod 'Google/Analytics'
pod 'Fabric'
pod 'Crashlytics'
pod 'PureLayout'

end

target '****Tests' do

end

Managed to solve this issue by:

-Select Pods Project -Build Settings -Set BaseSDK to iOS SDK (since pod install clears it) -Set Build Valid Architecture Only to NO.

Following this process the project now builds. I was able to import Pure Layout into my Bridging Header and access the pure layout functions in any of my view controller classes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM