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.

workspace configuration

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. build configurations scheme configuration

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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -