请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
66
帖子
3
勋章
219
Y币

[插件开发] ios 编译报错

[复制链接]
发表于 2021-10-27 15:47:26
2021-10-27 02:25:29
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -target UZApp clean

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

note: Using new build system
note: Build preparation complete

** CLEAN SUCCEEDED **

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild archive -scheme UZApp -configuration Release -archivePath UZApp.xcarchive "CODE_SIGN_IDENTITY=iPhone Distribution: Xuzhou Tongshan Rural Commercial Bank Co.,Ltd. (3AJ7MYEHPB)"

User defaults from command line:
    IDEArchivePathOverride = /Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcarchive
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CODE_SIGN_IDENTITY = iPhone Distribution: Xuzhou Tongshan Rural Commercial Bank Co.,Ltd. (3AJ7MYEHPB)

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:EF6CC36A-06E4-44CD-9259-22943B53495E, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:F0AFF073-9C81-4148-901E-2B53F5D0CC8A, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:75F04D12-9F0D-4152-8CEC-D2D3DDA5FD96, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:E0FE8912-CB73-4A6C-9012-8D8EE2D9E676, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:7FAAFB41-30FA-44BB-8B56-0D5D00B629AD, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:991ADF60-A98D-41A4-93B0-36A7E78E5F59, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:60E77D30-543B-43A8-A1E2-5074B7F6D0FB, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:CD976C69-BFCA-4F18-BABC-3F8C322B6178, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:053C2273-394B-400E-AFB5-2610A0F442A9, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:895591ED-B322-4670-8406-4FCE85EB3EC3, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:377DF094-B3DC-485C-9025-D6771F5CDBCE, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:8B4A11DC-8C05-4B09-92F3-06427C24070B, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:9B4C45DA-591D-461A-AACF-835B06DC56F5, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:C6C1516D-8619-4C97-B380-F46FBE9D65DB, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:2E1845E9-E9B1-404F-8B59-E402D2B80976, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:91141CFC-72EF-4947-9A52-A24EA4E45265, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:10C34FC7-B581-4325-A8F5-3FABD5A71A2A, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:E5F479BE-F060-48AD-A44E-58F656F74FF0, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:FB055912-69E2-49D6-B14A-6D3047BAB37F, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:9BB87747-2D8D-4015-8BE4-E4A61146A461, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:F5E62688-438E-4F14-ACBE-2B399E80443F, OS:15.0, name:iPod touch (7th generation) }
note: Using new build system
note: Using codesigning identity override: iPhone Distribution: Xuzhou Tongshan Rural Commercial Bank Co.,Ltd. (3AJ7MYEHPB)
note: Planning
Analyze workspace

Create build description
Build description signature: 28caa2b2139ba8461113c34db97e615a
Build description path: /Users/apicloud/Library/Developer/Xcode/DerivedData/UZApp-cotsyzrrbtabmscdlymhlywapbft/Build/Intermediates.noindex/ArchiveIntermediates/UZApp/IntermediateBuildFilesPath/XCBuildData/28caa2b2139ba8461113c34db97e615a-desc.xcbuild

note: Build preparation complete
note: Building targets in parallel
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: NewsstandKit is deprecated. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: OpenGLES is deprecated. Consider migrating to Metal instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: MobileCoreServices has been renamed. Use CoreServices instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: GLKit is deprecated. Consider migrating to MetalKit instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: AddressBook is deprecated. Consider migrating to Contacts instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: AddressBookUI is deprecated. Consider migrating to ContactsUI instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: warning: AssetsLibrary is deprecated. Consider migrating to Photos instead. (in target 'UZApp' from project 'UZApp')
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: error: The linked library 'libXHJump.a' is missing one or more architectures required by this target: armv7. (in target 'UZApp' from project 'UZApp')
** ARCHIVE FAILED **

error: archive not found at path '/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcarchive'
** EXPORT FAILED **

备注 :  libXHJump.a 是我们自定义的模块, 配置如下所示:



66
帖子
3
勋章
219
Y币

/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: error: The linked library 'libXHJump.a' is missing one or more architectures required by this target: armv7. (in target 'UZApp' from project 'UZApp')
** ARCHIVE FAILED **

error: archive not found at path '/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcarchive'
** EXPORT FAILED **
备注:
libXHJump.a 是自定义模块  具体配置见附件
WechatIMG140.jpeg
130
帖子
7
勋章
5万+
Y币
qianjun33 发表于 2021-10-27 16:03
/Users/apicloud/uzmap/temp/6eSEU6QN371YkLK/ios/UZApp.xcodeproj: error: The linked library 'libXHJum ...

重复引用了,在打包.a 文件的是否不用引入 第三方sdk
66
帖子
3
勋章
219
Y币
520707liu 发表于 2021-10-27 16:09
重复引用了,在打包.a 文件的是否不用引入 第三方sdk

静态库引入三方的时候  不用勾选add是吧?
WeChat2bd32919aede66ec43bebb9457aac30b.png
66
帖子
3
勋章
219
Y币
qianjun33 发表于 2021-10-27 16:40
静态库引入三方的时候  不用勾选add是吧?

不对啊  改过了 还是报错
130
帖子
7
勋章
5万+
Y币
qianjun33 发表于 2021-10-27 16:44
不对啊  改过了 还是报错

你是开发还是打包???自己把所有的都去除掉,重新按照视频走一遍、

上边的错误就是重复引用了
130
帖子
7
勋章
5万+
Y币
qianjun33 发表于 2021-10-27 16:44
不对啊  改过了 还是报错

搞定了吗?
您需要登录后才可以回帖 登录

本版积分规则