yuehengwu / upload_podspec

🐙Auto upload podspec to specified specs-url, python script will auto push code and push release tag
7 stars 3 forks source link

pod install 失败 #1

Open FoneG opened 3 years ago

FoneG commented 3 years ago

执行步骤

  1. clone FGIAPService
  2. 在 FGIAPService.podspec 同级目录放置 build_lib.sh,并把 PROJECT_NAME 跟换为 FGIAPService
  3. 修改 FGIAPService.podspec 的version为 0.4.0.Binary
  4. 执行pod install

错误日志

Analyzing dependencies
-------------------------------------------------------------------
Notice:FGIAPService is binary now
-------------------------------------------------------------------
Downloading dependencies
Installing FGIAPService 0.4.0.Binary (was 0.4.0)
[!] /bin/bash -c 
set -e
/bin/bash build_lib.sh

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release -workspace FGIAPService.xcworkspace -scheme FGIAPServiceBinary -sdk iphoneos clean build CONFIGURATION_BUILD_DIR=build/Release-iphoneos LIBRARY_SEARCH_PATHS=./Pods/build/Release-iphoneos

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CONFIGURATION_BUILD_DIR = build/Release-iphoneos
    LIBRARY_SEARCH_PATHS = ./Pods/build/Release-iphoneos
    SDKROOT = iphoneos15.0

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -configuration Release -workspace FGIAPService.xcworkspace -scheme FGIAPServiceBinary -sdk iphonesimulator clean build CONFIGURATION_BUILD_DIR=build/Release-iphonesimulator LIBRARY_SEARCH_PATHS=./Pods/build/Release-iphonesimulator

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = x86_64
    CONFIGURATION_BUILD_DIR = build/Release-iphonesimulator
    LIBRARY_SEARCH_PATHS = ./Pods/build/Release-iphonesimulator
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphonesimulator15.0

2021-10-08 16:03:00.421 xcodebuild[7996:353957] [MT] PluginLoading: Required plug-in compatibility UUID 8BAA96B4-5225-471B-B124-D32A349B8106 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-10-08 16:03:00.546 xcodebuild[7996:353957] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7febb3aeaf10), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
2021-10-08 16:03:00.546 xcodebuild[7996:353957] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7febb3aeaf10), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
xcodebuild: error: The workspace named "FGIAPService" does not contain a scheme named "FGIAPServiceBinary". The "-list" option can be used to find the names of the schemes in the workspace.
2021-10-08 16:03:01.570 xcodebuild[8004:354235] [MT] PluginLoading: Required plug-in compatibility UUID 8BAA96B4-5225-471B-B124-D32A349B8106 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-10-08 16:03:01.703 xcodebuild[8004:354235] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fba7fb93610), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
2021-10-08 16:03:01.703 xcodebuild[8004:354235] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fba7fb93610), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
xcodebuild: error: The workspace named "FGIAPService" does not contain a scheme named "FGIAPServiceBinary". The "-list" option can be used to find the names of the schemes in the workspace.
cp: build/Release-iphoneos/usr/local/include: No such file or directory
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: build/Release-iphoneos/libFGIAPServiceBinary.a (No such file or directory)
rm: build: No such file or directory
yuehengwu commented 3 years ago

执行步骤

  1. clone FGIAPService
  2. 在 FGIAPService.podspec 同级目录放置 build_lib.sh,并把 PROJECT_NAME 跟换为 FGIAPService
  3. 修改 FGIAPService.podspec 的version为 0.4.0.Binary
  4. 执行pod install

错误日志

Analyzing dependencies
-------------------------------------------------------------------
Notice:FGIAPService is binary now
-------------------------------------------------------------------
Downloading dependencies
Installing FGIAPService 0.4.0.Binary (was 0.4.0)
[!] /bin/bash -c 
set -e
/bin/bash build_lib.sh

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release -workspace FGIAPService.xcworkspace -scheme FGIAPServiceBinary -sdk iphoneos clean build CONFIGURATION_BUILD_DIR=build/Release-iphoneos LIBRARY_SEARCH_PATHS=./Pods/build/Release-iphoneos

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CONFIGURATION_BUILD_DIR = build/Release-iphoneos
    LIBRARY_SEARCH_PATHS = ./Pods/build/Release-iphoneos
    SDKROOT = iphoneos15.0

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO -configuration Release -workspace FGIAPService.xcworkspace -scheme FGIAPServiceBinary -sdk iphonesimulator clean build CONFIGURATION_BUILD_DIR=build/Release-iphonesimulator LIBRARY_SEARCH_PATHS=./Pods/build/Release-iphonesimulator

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    ARCHS = x86_64
    CONFIGURATION_BUILD_DIR = build/Release-iphonesimulator
    LIBRARY_SEARCH_PATHS = ./Pods/build/Release-iphonesimulator
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphonesimulator15.0

2021-10-08 16:03:00.421 xcodebuild[7996:353957] [MT] PluginLoading: Required plug-in compatibility UUID 8BAA96B4-5225-471B-B124-D32A349B8106 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-10-08 16:03:00.546 xcodebuild[7996:353957] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7febb3aeaf10), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
2021-10-08 16:03:00.546 xcodebuild[7996:353957] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7febb3aeaf10), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
xcodebuild: error: The workspace named "FGIAPService" does not contain a scheme named "FGIAPServiceBinary". The "-list" option can be used to find the names of the schemes in the workspace.
2021-10-08 16:03:01.570 xcodebuild[8004:354235] [MT] PluginLoading: Required plug-in compatibility UUID 8BAA96B4-5225-471B-B124-D32A349B8106 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/XToDo.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-10-08 16:03:01.703 xcodebuild[8004:354235] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fba7fb93610), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
2021-10-08 16:03:01.703 xcodebuild[8004:354235] [MT] iPhoneConnect: 📱<DVTiOSDevice (0x7fba7fb93610), 骑着王八看夕阳, iPhone, 13.6 (17G68), 00008020-001130941A90003A>: downgrading native architecture from arm64e to arm64 for com.apple.platform.iphoneos:13.6
xcodebuild: error: The workspace named "FGIAPService" does not contain a scheme named "FGIAPServiceBinary". The "-list" option can be used to find the names of the schemes in the workspace.
cp: build/Release-iphoneos/usr/local/include: No such file or directory
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: build/Release-iphoneos/libFGIAPServiceBinary.a (No such file or directory)
rm: build: No such file or directory

报错是说找不到.Binary的tag

FoneG commented 3 years ago

这个脚本不就是用来打包静态库,怎么还要依赖.Binary的tag