Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build frameworks for arm64 architecture as well ? #68

Open
2 tasks done
badrinathvm opened this issue Feb 16, 2021 · 6 comments
Open
2 tasks done

Build frameworks for arm64 architecture as well ? #68

badrinathvm opened this issue Feb 16, 2021 · 6 comments

Comments

@badrinathvm
Copy link

Checklist

Description

As of now when we use pod binary prebuild, it prebuilds the framework line below

xcodebuild -project /Users/XXX/projects/XXX/XXX/_Prebuild/Pods.xcodeproj -target IntuitAuthorization -configuration Debug -sdk iphonesimulator -destination "generic/platform=iOS Simulator" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO build 2>&1

How to can we include ARCHS=x86_64, arm64? so that archiving works.

Motivation

[Details go here]

Summary

[Details go here]
@Oxthor
Copy link

Oxthor commented Feb 17, 2021

This is related to this issue: #19
You can follow the steps indicated here: #19 (comment)

@badrinathvm
Copy link
Author

Thank you @Oxthor , Let me give a try and keep posted.

@badrinathvm
Copy link
Author

badrinathvm commented Feb 17, 2021

So to clarify more, after making dev_pods_enabled: true i should be seeing ARCHS=x86_64,arm64 and -sdk as iPhoneos

xcodebuild -project /Users/XXX/projects/XXX/XXX/_Prebuild/Pods.xcodeproj -target IntuitAuthorization -configuration Debug -sdk iphonesimulator -destination "generic/platform=iOS Simulator" ARCHS=x86_64 ONLY_ACTIVE_ARCH=NO build 2>&1 ?

But i am still seeing like below.

Screen Shot 2021-02-17 at 1 49 30 PM

@Oxthor
Copy link

Oxthor commented Feb 18, 2021

It is a two step build, first simulator, then devices. Wait a bit more and once the simulator one finishes, you will see an extra xcodebuild command running for device.

Just to clarify, this is the param you should be setting: device_build_enabled: true.

@badrinathvm
Copy link
Author

@Oxthor Let me try this quickly and get back to u for any other issues i see.

@badrinathvm
Copy link
Author

badrinathvm commented Feb 18, 2021

Yes, it is executing one more command after a delay. Thank you.

I have another question if I use pod binary prebuild --push is --push is considered as optional to push only if any delta exists? Looks like it is executing every time and the build fails ( See Below ) How can we make push optional?


――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

/Users/****/.rvm/gems/ruby-2.5.0/bin/pod binary prebuild --repo-update --push
### Report

* What did you do?

* What did you expect to happen?

* What happened instead?


### Stack```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants