title: Xcode 6 iOS Creating a Cocoa Touch Framework - Architectures issues
body: <p>I'm trying to make a dynamic framework for an iOS app. Thanks to the new version of Xcode (6) we can select a Cocoa Touch Framework when we create a new project and there is no more need to add an aggregate target, run script and so to make one. I have no issue when i build the framework. But when I'm trying to use it inside an iOS app I get some architectures issues.</p>
  
  <pre><code>ld: warning: ignoring file /Library/Frameworks/MyFramework.framework/MyFramework, file was built for x86_64 which is not the architecture being linked (arm64): /Library/Frameworks/MyFramework.framework/MyFramework
  Undefined symbols for architecture arm64:
    "_OBJC_CLASS_$_MyFrameworkWebService", referenced from:
        objc-class-ref in AppDelegate.o
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  
  ld: warning: ignoring file /Library/Frameworks/MyFramework.framework/MyFramework, file was built for x86_64 which is not the architecture being linked (armv7): /Library/Frameworks/MyFramework.framework/MyFramework
  Undefined symbols for architecture armv7:
    "_OBJC_CLASS_$_MyFrameworkWebService", referenced from:
        objc-class-ref in AppDelegate.o
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>Well I have tried to change the settings of the framework project and target (Architectures &amp; Build valid architecture only &amp; Valid architectures). I've done the same thing for the iOS app project but nothing works. I think there is something I didn't understand.</p>
  
  <p>For example when I build a framework for only i386 (iOS Simulator) check with the command line
  "xcrun lipo -info MyFramework", I have an issue that </p>
  
  <p>ld: warning: ignoring file /Library/Frameworks/MyFramework.framework/MyFramework, file was built for x86_64 which is not the architecture being linked (i386)...</p>
  
  <p>If someone can help me to get a framework that works for all iOS architectures including simulators.</p>