1

I try to update a existing pod, but when I did pod trunk push NAME.podspec, I got this error : enter image description here

I try several solution from this post Xcode 12, building for iOS Simulator, but linking in object file built for iOS, for architecture arm64_ but none worked(excluded architecture, only active arch).

There is no problem when I run the compilatiton on Xcode, my framework is well generated. The only problem is when I try to pod trunk, or pod lib lint

In my xcode project, In build phase, I run that script :

xcodebuild -target "${​TARGET_NAME}​" -configuration ${​CONFIGURATION}​ -sdk iphonesimulator -arch x86_64 -arch i386 ONLY_ACTIVE_ARCH=NO EXCLUDED_ARCHS="arm64" BUILD_DIR="${​BUILD_DIR}​" BUILD_ROOT="${​BUILD_ROOT}" clean build

If I put ONLY_ACTIVE_ARCH=TRUE, the error message is a bit different :

enter image description here

gamerounet
  • 279
  • 4
  • 22
  • I think I'm having the same problem with updating my cocoapod and running 'pod lib lint'. Did you ever figure out the problem, and do you remember it? :) – ScottyB Oct 19 '21 at 02:04
  • I'm not 100% sur of the solution, but I know I modified some thing : my podspec, by adding this : s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' } and also my xcodebuild commande : xcodebuild -target "${TARGET_NAME}" -configuration ${CONFIGURATION} -sdk iphonesimulator -arch x86_64 -arch i386 ONLY_ACTIVE_ARCH=NO EXCLUDED_ARCHS[sdk=iphonesimulator*] = arm64 BUILD_DIR="${BUILD_DIR}" BUILD_ROOT="${BUILD_ROOT}" clean build – gamerounet Oct 20 '21 at 09:38
  • Thanks. Our implementation is so old that we didn’t even know about changes via xcframework, so we’re reworking the build script to create one. – ScottyB Oct 20 '21 at 20:20

0 Answers0