Creator version: 3.8.5
Xcode version: 16.3
I used the Google AdMob plugin integration SDK from the plugin store. When I debugged and ran it on a real device, I could play the game normally and watch ads normally. Everything was normal. However, when I packaged the official version in Archive, an error was reported:
clang++: error: no such file or directory: β/Users/xbz/cocosCode/sabongGame/build/ios/proj/Release-iphoneos/libadmob.aβ
Command Ld failed with a nonzero exit code
It seems that the file cannot be found. I canβt find the Release-iphoneos/libadmob.a directory and file in the proj directory. There is only the libadmob.a file in the Debug-iphoneos directory.
I have tried to manually create a new Release-iphoneos directory and put the libadmob.a file from the Debug-iphoneos directory into it. Then I could successfully archive it. Then I put it on the app store, but it was rejected, saying that the program crashed when it was opened. Then I removed the integrated ads and it passed the review without crashing this time.
Back to the topic, how to deal with this problem, please help me