我有一个Unity项目,为iPhone和Android构建和发布,但是该项目对于我的小笔记本电脑来说太大了(我可能不应该使用,但我拥有的一切) - 所以我升级到了一个新手我(但仍然更年长的)笔记本电脑带有更多的RAM,但现在该项目无法构建。我一直在殴打这匹死马,并且已经持续了几个月,现在我已经处于智慧。这是我可以给出的最好的摘要:
旧规格:
- Macos Catalina 10.15.7
- Unity 2019.4.23f1,
- 脚架1.10.1,
- Google Admob v5.3.0.unitypackage,
- Xcode 12.1(12a7403
可可蛋白
- ) SUR 11.6.6
- XCODE 13.0(13A233)
错误:
Showing All Errors Only
Ld /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/Binary/UnityFramework normal armv7 (in target 'UnityFramework' from project 'Unity-iPhone')
cd /Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target armv7-apple-ios10.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/GoogleUtilities -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/nanopb -L/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries -L/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries/Plugins/iOS -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/GoogleAppMeasurement/Frameworks -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/GoogleUserMessagingPlatform/Frameworks/Release -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleMobileAds -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/UserMessagingPlatform -filelist /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework.LinkFileList -install_name @rpath/UnityFramework.framework/UnityFramework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -map -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-armv7.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework_lto.o -fembed-bitcode-marker -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -lGoogleUtilities -lPromisesObjC -lc++ -lnanopb -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleAppMeasurement -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UserMessagingPlatform -framework WebKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CoreMotion -weak-lSystem -liPhone-lib -framework Security -framework MediaToolbox -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp /Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries/Plugins/iOS/unity-plugin-library.a -weak_framework Metal -weak_framework GameController -lPods-UnityFramework -Xlinker -dependency_info -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework_dependency_info.dat -o /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/Binary/UnityFramework
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GADInterstitialAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADUInterstitial.o)
(maybe you meant: _OBJC_CLASS_$_GADInterstitialAdBeta)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我觉得Cocoapods通过XCWorkSpace文件与Xcode通信存在问题,但我无法弄清楚到底是什么,直到实际求解它。我尝试了很多事情,一切都失败了,但是这是我记得的尝试。
我尝试的是:
-
解决这个较旧问题的解决方案::
- 将其他Linker标志设置为$(继承),甚至尝试过 @(继承)
- 从架构中删除ARM64
- 将构建主动体系结构设置为“是”(只有版本是否)
- 将构建活跃体系结构设置为所有人
-
:
- 将二进制的链接与库:击中 +并在“工作区”标题下添加全部
- 其中包括以下内容:
- pods_unityframework.framework
- googlemobileads.xcframework
- pods_unity_iphone.framework
- googleutilities.framework
- googleappmeasurement.xcframework
- fblpromises.framework
- nanopb.framework
- usermessagingplatform.xcframework
-
Install new cocoapods v1.11.3
- 将新的Unity项目构建到新文件夹中,并在Xcode中运行Workspace文件
- 在Unity中以Xcode
运行Workspace文件 - 检查“ Symlink Unity Libraries”(从某些答案到类似的问题,我再也找不到)
))
-
尝试了Google Admob的较新版本 - 但我开始遇到软件限制:我没有新的Fancy最新ADMOB指出的机器要运行XCode版本高于13的机器。
-
每次尝试尝试不同的东西
时,都会清洁构建文件夹
否时,都清理了构建文件夹,我并不是要使用' objc_class $ _ gadinterstitialadbeta',因为Xcode试图告诉我,只要尝试更改文件,在下一个Google Admob符号(奖励Videoad,Bannerad和ban and)上出现错误 - 但无论如何我都不需要触摸。
-
从我的项目中删除了Admob和Cocoapods,并在没有骰子的情况下多次尝试。
我想指出:我的较旧的机器仍然可以在其当前状态下构建游戏(勉强),但是我不能继续为此而努力,因为我使用了所有的RAM。
我还想说:我没有在另一台机器上跳过这些篮球,所以我显然错过了一些东西。我可以觉得这可能是面孔时刻。
I have a Unity project, built and released for both iPhone and Android, but the project got too large for my tiny laptop (that I probably shouldn't have used, but was all I had) - so I upgraded to a 'new to me' (but still older) laptop with more RAM, but now the project won't build. I've been beating this dead horse off and on for months, and now I'm at my wits end. This is a summary as best I can give:
Old Specs:
- MacOS Catalina 10.15.7
- Unity 2019.4.23f1,
- Cocoapods 1.10.1,
- Google Admob v5.3.0.unitypackage,
- Xcode 12.1 (12A7403)
New Specs: All the same except
- MacOS Big Sur 11.6.6
- Xcode 13.0 (13A233)
The Error:
Showing All Errors Only
Ld /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/Binary/UnityFramework normal armv7 (in target 'UnityFramework' from project 'Unity-iPhone')
cd /Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target armv7-apple-ios10.0 -dynamiclib -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/GoogleUtilities -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/PromisesObjC -L/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/nanopb -L/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries -L/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries/Plugins/iOS -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/Google-Mobile-Ads-SDK/Frameworks/GoogleMobileAdsFramework-Current -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/GoogleAppMeasurement/Frameworks -F/Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Pods/GoogleUserMessagingPlatform/Frameworks/Release -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/GoogleMobileAds -F/Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Products/ReleaseForRunning-iphoneos/XCFrameworkIntermediates/UserMessagingPlatform -filelist /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework.LinkFileList -install_name @rpath/UnityFramework.framework/UnityFramework -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -map -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/UnityFramework-LinkMap-normal-armv7.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework_lto.o -fembed-bitcode-marker -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -lGoogleUtilities -lPromisesObjC -lc++ -lnanopb -lsqlite3 -lz -framework AVFoundation -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreMedia -framework CoreTelephony -framework CoreVideo -framework GoogleAppMeasurement -framework GoogleMobileAds -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UserMessagingPlatform -framework WebKit -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -weak_framework CoreMotion -weak-lSystem -liPhone-lib -framework Security -framework MediaToolbox -framework CoreText -framework AudioToolbox -weak_framework AVFoundation -framework AVKit -framework CFNetwork -framework CoreGraphics -framework CoreMedia -weak_framework CoreMotion -framework CoreVideo -framework Foundation -framework OpenAL -framework OpenGLES -framework QuartzCore -framework SystemConfiguration -framework UIKit -liconv.2 -lil2cpp /Users/projectioncomputer/Documents/Anderson-Unity/CrazyGoopJumper/Builds/TestAdMobv5.3.0/Libraries/Plugins/iOS/unity-plugin-library.a -weak_framework Metal -weak_framework GameController -lPods-UnityFramework -Xlinker -dependency_info -Xlinker /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/UnityFramework_dependency_info.dat -o /Users/projectioncomputer/Library/Developer/Xcode/DerivedData/Unity-iPhone-fbsnxzmoplpoqfgxfiqacoktspfs/Build/Intermediates.noindex/Unity-iPhone.build/ReleaseForRunning-iphoneos/UnityFramework.build/Objects-normal/armv7/Binary/UnityFramework
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_GADInterstitialAd", referenced from:
objc-class-ref in unity-plugin-library.a(GADUInterstitial.o)
(maybe you meant: _OBJC_CLASS_$_GADInterstitialAdBeta)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I feel like there is an issue with Cocoapods communicating with Xcode through the xcworkspace file, but I cannot figure out what is going on to the point of actually solving it. I've tried so many things and everything has failed, but here is what I can remember trying.
What I've Tried:
-
Solutions On This Older Question:
- Setting Other Linker Flags to $(inherited), and even tried @(inherited)
- Remove arm64 from Architectures
- Setting Build Active Architecture to all be Yes (only Release was No)
- Setting Build Active Architecture to all be No
-
The first one here:
- Link Binary With Libraries: hitting + and adding all under the 'Workspace' header
- Which includes these:
- Pods_UnityFramework.framework
- GoogleMobileAds.xcframework
- Pods_Unity_iPhone.framework
- GoogleUtilities.framework
- GoogleAppMeasurement.xcframework
- FBLPromises.framework
- nanopb.framework
- UserMessagingPlatform.xcframework
-
Install new cocoapods v1.11.3
- Build new Unity project into new folder and run the workspace file in Xcode
-
In Unity - check 'Symlink Unity libraries' (from some answer to a similar question I can no longer find)
-
Tried a newer version of Google Admob - but I start to hit software limitations: I don't have the new fancy machines to run an Xcode version higher than 13, which the newest Admob is stating it requires.
-
Cleaned the build folder every time I tried something different
-
No, I did not mean to use 'OBJC_CLASS$_GADInterstitialAdBeta', as Xcode is trying to tell me, and any attempts to change the files just error out on the next Google AdMob symbol (RewardedVideoAd, BannerAd, and on and on) - but I shouldn't need to touch that anyways.
-
Removed Admob and Cocoapods from my project, and tried again multiple times with no dice.
I would like to state: My older machine can still build the game in its current state (just barely), but I can't keep working on the project on that because I use all the RAM.
I would also like to state: I didn't jump through any of these hoops on my other machine so I clearly have missed something. I can feel this might be a facepalm moment.
发布评论