Validating app, application is missing Architectur

2019-01-22 13:32发布

When I'm updating my first iOS app , I have 2 problems validating them,

*iPhone/iPod Touch:application executable is missing a required architecture. 
At least one of the following architecture(s) must be present: armv7

*Unable to extract entitlements from application: (null)

The Info.plist and build settings are all the defaults, the only thing I changed is the code signing Identity debug and release to my distribution provisioning profile, with the app ID and Bundle Id identically.

13条回答
Explosion°爆炸
2楼-- · 2019-01-22 14:12

Make sure 'Build Active Architectures' is set to No in BOTH the project and target settings too as well as the answers here "Warning: iPhone apps should include an armv6 architecture" even with build config set

查看更多
神经病院院长
3楼-- · 2019-01-22 14:14

Check target and project settings and set "Build Active Arch Only" to NO.

查看更多
狗以群分
4楼-- · 2019-01-22 14:16

it says missing a required architecture try this

  1. Go to Targets "your project"
  2. Go to Build Settings
  3. See if there is armv7 in the Architectures
  4. if not, then set Architectures to armv7
  5. clean and build.

If there is armv7 already, then something must be wrong.

hope it helps!

查看更多
一夜七次
5楼-- · 2019-01-22 14:19

As soon as I unplugged my iPad the warning went away and was able to compile and upload to app store.

查看更多
看我几分像从前
6楼-- · 2019-01-22 14:24

Now I resolved the problem, that was a very simple problem, it was with my executable name.

My target have an invalid character (+) then, when i upload my app it shows a problem (this bundle is invalid , the executable name can not contain this characters ....) then i changed the executable name from ${EXECUTABLE_NAME} to Chemistry, but the registered name of my app is Chemistry++.

And then the validate show others problems, which has been produced by changing this.

For resolving the problem I click on the project > target two times and changed the name, with no invalid characters ( * . , + {} () ) , all the problems disappeared.

Then it upload successfully.

(When I change the Info.plist executable name, for other name, it creates incompatibility, so don't to it and make it defaults ( ${EXECUTABLE_NAME} ), if you change, it creates other problems.)

Waiting for apple review!!!

查看更多
干净又极端
7楼-- · 2019-01-22 14:28

Confirmed. I just unplugged my iPhone 5s and re-archived the app. It worked flawlessly.

Welp, I'll never get those 40 minutes of my life back.

查看更多
登录 后发表回答