Cocoapod 0.38.0 and AFNetworking 2.5 AF_APP_EXTENSIONS compilation error <p>My project has 9 targets : </p> <pre><code>- Prod - Prod_app_extension_1 - Prod_app_extension_2 - Beta - Beta_app_extension_1 - Beta_app_extension_2 - Dev - Dev_app_extension_2 - Dev_app_extension_2 </code></pre> <p>I'm using 0.38.2 cocoapod version and 2.5.4 AFNetworking.</p> <p>I'm trying to use AFNetworking with cocoapod but I get the <em>AF_APP_EXTENSIONS</em> error while compiling. After searching for the solution on the web, I understand the problem and found that defining the 'preprocessor macros' <em>AF_APP_EXTENSIONS</em> can fix the problem. </p> <p>But here is the struggle : By default, <em>AF_APP_EXTENSIONS</em> is correctly added into my 6 app_extensions. In the other hand, when I navigate through my Pods target, <strong>each Pods are separated</strong> :</p> <pre><code>- NSDate+TimeAgo - AFNetworking - iRate - AppUtils - Prod - Prod_app_extension_1 - Prod_app_extension_2 - Beta - Beta_app_extension_1 - Beta_app_extension_2 - Dev - Dev_app_extension_2 - Dev_app_extension_2 </code></pre> <p>In another project I made, all pods are generated this way : </p> <pre><code>- Prod - Pods-Prod-NSDate+TimeAgo - Pods-Prod-AFNetworking - Pods-Prod-iRate - Pods-Prod-AppUtils - Prod_app_extension_1 - Pods-Prod_app_extension_1-NSDate+TimeAgo - Pods-Prod_app_extension_1-AFNetworking - Pods-Prod_app_extension_1-iRate - Prod_app_extension_2 - Pods-Prod_app_extension_2-NSDate+TimeAgo - Pods-Prod_app_extension_2-AFNetworking - Pods-Prod_app_extension_2-iRate - Beta - Pods-Beta-NSDate+TimeAgo - Pods-Beta-AFNetworking - Pods-Beta-iRate - Pods-Beta-AppUtils - Beta_app_extension_1 - Pods-Beta_app_extension_1-NSDate+TimeAgo - Pods-Beta_app_extension_1-AFNetworking - Pods-Beta_app_extension_1-iRate - Beta_app_extension_2 - Pods-Beta_app_extension_2-NSDate+TimeAgo - Pods-Beta_app_extension_2-AFNetworking - Pods-Beta_app_extension_2-iRate - Dev - Pods-Dev-NSDate+TimeAgo - Pods-Dev-AFNetworking - Pods-Dev-iRate - Pods-Dev-AppUtils - Dev_app_extension_1 - Pods-Dev_app_extension_1-NSDate+TimeAgo - Pods-Dev_app_extension_1-AFNetworking - Pods-Dev_app_extension_1-iRate - Dev_app_extension_2 - Pods-Dev_app_extension_2-NSDate+TimeAgo - Pods-Dev_app_extension_2-AFNetworking - Pods-Dev_app_extension_2-iRate </code></pre> <p>I think this is why my 'preprocessor macros' <em>AF_APP_EXTENSIONS</em> isn't define into the 'AFNetworking' Pods target. </p> <p>Here is my Podfile :</p> <pre><code>platform :ios, '7.0' xcodeproj 'myProj.xcodeproj' def generic_pods pod 'NSDate+TimeAgo' pod 'AFNetworking', '~&gt; 2.0' end def app_pods pod 'iRate' pod 'AppUtils', end target "Prod" do generic_pods app_pods end target "Prod_app_extension_1" do generic_pods end target "Prod_app_extension_2" do generic_pods end target "Beta" do generic_pods app_pods end target "Beta_app_extension_1" do generic_pods end target "Beta_app_extension_2" do generic_pods end target "Dev" do generic_pods app_pods end target "Dev_app_extension_1" do generic_pods end target "Dev_app_extension_2" do generic_pods end </code></pre> <p>I don't know what the problem is, and it's driving me crazy. </p>