ios - Xcode, Linking framework doesn't work when use custom build configuration -
i have workspace contain 2 projects: main project called "mainproject" , second cocoatouch framework called "privateframework". privateframework linked mainproject , works well.
i have podfile file in project looks below. can see use xcglogger pod in privateframework , mainproject.
source 'https://github.com/cocoapods/specs.git' platform :ios, '8.0' use_frameworks! workspace 'mainproject' def shared_pods pod 'xcglogger' end target 'privateframework' xcodeproj 'privateframework/privateframework.xcodeproj' shared_pods end target 'mainproject' xcodeproj 'mainproject.xcodeproj', 'development' => :debug, 'production' => :release shared_pods pod 'alamofire' pod 'unbox' pod 'locksmith' end
after installing pods ok privateframework , mainproject compiling , running well.
problem when tried add in mainproject new build configurations instead debug , release. added production , development configuration duplicate of release , debug.
when add new scheme project called "mainproject development" use development build configuration (called development) project stops compiling. have linking problem in privateframework can't see xcglogger , warning:
target 'pods-privateframework' of project 'pods' rejected implicit dependency 'pods_privateframework.framework' because architectures 'i386' didn't contain required architectures 'i386 x86_64'
- why if use custom build configuration new scheme doesn't work , project stops compiling?
- do have suggestions how fix it?
here can find repository workspace: https://github.com/krystiansliwa/testworkspace
i read "you can't have mix of debug , release same configuration" 1 of cocoapods members. , podfile using same configuration ('development' or 'production') 2 targets (privateframework , mainproject). implicit rules privateframework may conflicting explicit rules of mainproject.
try using:
xcodeproj 'privateframework/privateframework.xcodeproj', 'development' => :debug, 'production' => :release
Comments
Post a Comment