0

Im currently making a project in swift and its going allright..

But when I run my app on my device (iPhone 5s -iOS 7.1), XCode returns me the following error

ld: in '/usr/lib/system/libsystem_configuration.dylib', missing required architecture arm64
in file /usr/lib/system/libsystem_configuration.dylib (2 slices) for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have tried removing derived data but it didn't work and I couldn't find any other answers to that question.

EDIT: Running on simulator with iOS 7 (both 32bit and 64bit sims) works flawlessly.

MarmiK
  • 5,639
  • 6
  • 40
  • 49
tmagalhaes
  • 944
  • 9
  • 12
  • did you add `arm64` Achitectures and ValiAchitectures? – Mohit Aug 28 '14 at 10:56
  • i didn't even touch any of that. It says that Architectures contains armv7 and arm64 and ValidArch contains arm64 armv7 and armv7s – tmagalhaes Aug 28 '14 at 10:59
  • Have you tried setting all architectures for the debug and release settings in build settings? – Dhwanit Zaveri Aug 28 '14 at 11:19
  • They're all the same. – tmagalhaes Aug 28 '14 at 11:25
  • Are you using a static library? or any external libraries? – bvsss Aug 28 '14 at 11:25
  • if you are using a external library then u need to get library that supports `arm64` architecture . Else if you are using static library ..even there u need to set `arm64` for that library to build. – bvsss Aug 28 '14 at 11:31
  • Im using cocoapods for dependencies. As far as i know all my libraries support it and I think that if it was an error on those pods it would specify. And by the way the library being pointed by the error is: '/usr/lib/system/libsystem_configuration.dylib' – tmagalhaes Aug 28 '14 at 11:49

1 Answers1

1

Do u have this architecture type with you under architectures

Do u have this architecture type with you under architectures.Sry had to add image so created a post .

Also did u try setting Build Active architectore only to NO .

Is the arm64 architecture required in ur project?... if u dont need it please check this SO link to edit the architectures.Click this link

Community
  • 1
  • 1
bvsss
  • 72
  • 6
  • On Architectures i have only armv7 and arm64. Changed Build Active Achitecture to NO and after cleaning Derived Data it changed the error to: `ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation)` Then I changed Pods project Build Active Achitecture also to NO and the error became the initial one again. – tmagalhaes Aug 28 '14 at 12:39
  • if no u can remove the architecture using the link above and also u can remove from cocoapods following this link. http://cameronspickert.com/2014/01/20/remove-the-arm64-architecture-from-cocoapods-targets.html – bvsss Aug 28 '14 at 12:42
  • I removed from cocoapods and from my main project and the error presented is this: `ld: in '/usr/lib/system/libsystem_configuration.dylib', missing required architecture armv7 in file /usr/lib/system/libsystem_configuration.dylib (2 slices) for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)` As far as i know i do not require arm64 – tmagalhaes Aug 28 '14 at 12:49
  • sos did u set architectures to arm7 armv7 – bvsss Aug 28 '14 at 13:58
  • The architectures are the default ones. I did what the example you gave me showed and didn't work. Currently my Architecture is displaying: Standard Architectures (armv7, arm64) - &(ARCHS_STANDARD) – tmagalhaes Aug 28 '14 at 14:59
  • i just wanted to let u know how to change...... make the standard architectures to arm7 armv7 – bvsss Aug 30 '14 at 07:06