Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use "error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleToolboxForMac' from project 'Pods')" #288

Open
DongdongGreenDot opened this issue Nov 7, 2023 · 1 comment

Comments

@DongdongGreenDot
Copy link

pod package /Users/dongdong.ding/Desktop/Re_use_code/GoogleMLKit.podspec.json
Analyzing dependencies
Fetching podspec for GoogleMLKit from GoogleMLKit.podspec.json
Downloading dependencies
Installing GTMSessionFetcher (2.3.0)
Installing GoogleDataTransport (9.2.5)
Installing GoogleMLKit (4.0.0)
Installing GoogleToolboxForMac (2.3.2)
Installing GoogleUtilities (7.11.6)
Installing GoogleUtilitiesComponents (1.1.0)
Installing MLKitCommon (9.0.0)
Installing PromisesObjC (2.3.1)
Installing nanopb (2.30909.0)
Generating Pods project
Skipping User Project Integration
Pod installation complete! There is 1 dependency from the Podfile and 9 total pods installed.
Building framework GoogleMLKit (4.0.0) with configuration Release
Build command failed: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_GoogleMLKit=PodsDummy_PodPackage_GoogleMLKit' ARCHS='x86_64 i386 arm64 armv7 armv7s' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments' CONFIGURATION_BUILD_DIR=build clean build -configuration Release -target Pods-packager -project Pods/Pods.xcodeproj 2>&1
Output:
2023-11-07 10:24:49.773 xcodebuild[90896:1009212] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild "GCC_PREPROCESSOR_DEFINITIONS=$(inherited) PodsDummy_Pods_GoogleMLKit=PodsDummy_PodPackage_GoogleMLKit" "ARCHS=x86_64 i386 arm64 armv7 armv7s" "OTHER_CFLAGS=-fembed-bitcode -Qunused-arguments" CONFIGURATION_BUILD_DIR=build clean build -configuration Release -target Pods-packager -project Pods/Pods.xcodeproj

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = x86_64 i386 arm64 armv7 armv7s
    CONFIGURATION_BUILD_DIR = build
    GCC_PREPROCESSOR_DEFINITIONS = $(inherited) PodsDummy_Pods_GoogleMLKit=PodsDummy_PodPackage_GoogleMLKit
    OTHER_CFLAGS = -fembed-bitcode -Qunused-arguments


** CLEAN SUCCEEDED **

Computing target dependency graph and provisioning inputs

Create build description
Build description signature: 7ad83d9bbb4672c228572ebd1ff4bfcc
Build description path: /var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/../build/XCBuildData/7ad83d9bbb4672c228572ebd1ff4bfcc.xcbuilddata

warning: Building targets in manual order is deprecated - check "Parallelize build for command-line builds" in the project editor, or set DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING in any of the targets in the current build to suppress this warning
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleMLKit' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GoogleMLKit' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleDataTransport' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleDataTransport' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GoogleDataTransport' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleUtilitiesComponents' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleUtilitiesComponents' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GoogleUtilitiesComponents' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleUtilities' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleUtilities' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GoogleUtilities' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'PromisesObjC' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'PromisesObjC' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'PromisesObjC' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'nanopb' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'nanopb' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'nanopb' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'Pods-packager' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'Pods-packager' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'MLKitCommon' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'MLKitCommon' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GTMSessionFetcher' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GTMSessionFetcher' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GTMSessionFetcher' from project 'Pods')
/var/folders/zp/v_z4v5fj62zck4cpk4qxwjvjyvdbwl/T/cocoapods-sexd0xai/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 11.0 to 16.4.99. (in target 'GoogleToolboxForMac' from project 'Pods')
error: The armv7 architecture is deprecated. You should update your ARCHS build setting to remove the armv7 architecture. (in target 'GoogleToolboxForMac' from project 'Pods')
error: The armv7s architecture is deprecated. You should update your ARCHS build setting to remove the armv7s architecture. (in target 'GoogleToolboxForMac' from project 'Pods')
** BUILD FAILED **
@wwwcg
Copy link

wwwcg commented Jan 17, 2024

created a fork to fixes these issues, if you run into the same problem, try it: cocoapods-packager-next

to use:

gem install cocoapods-packager-next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants