Skip to content

Upgrade project and CI to use Xcode 12#148

Merged
mokagio merged 4 commits intodevelopfrom
xcode-12
Oct 8, 2020
Merged

Upgrade project and CI to use Xcode 12#148
mokagio merged 4 commits intodevelopfrom
xcode-12

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Oct 5, 2020

Updates the CI config to run on Xcode 12 and iOS 14. The project changes were made by the Xcode upgrade wizard.

This fixes #149, although it's really a workaround: switch to a fork of the pod while waiting for a proper/different fix upstream, see jedisct1/swift-sodium#213.

@mokagio mokagio marked this pull request as ready for review October 8, 2020 08:36
Because of the build system changes in Xcode 12 due to the support of
Apple Silicon, we now need to explicitly exclude the arm64 architecture
from the build, otherwise xcodebuild will fail to build.

I opened an issue in the Sodium repo, see
jedisct1/swift-sodium#213, but I haven't
received feedback yet.

In order to unblock our progress, I created a fork of Sodium,
Sodium-Fork, which incorporate the necessary changes to pass the
validation.

I published the fork on CocoaPods, but unfortunately CI seems to fail to
find it.
See this build:
https://app.circleci.com/pipelines/github/Automattic/Automattic-Tracks-iOS/380/workflows/c0206d34-0f8a-4913-8b5d-b05e6dcb7c5b/jobs/936

I tried to set the `update-specs-sources` parameter to true, but it
didn't make any difference.
Interestingly, CI shows that the command runs, but there is no output
and the execution time is 1s, too little to fetch the CocoaPods specs
repo.
This makes me think there might be something wrong in the setup or in
how CI runs it.

To address this issue, I published the pod on my private specs repo, and
added its URL to the sources for the validation.

Funny enough, while the spec validation fails to find the new pod, the `pod
install` command in a different job has no problems with it.
@mokagio mokagio merged commit 6873664 into develop Oct 8, 2020
@mokagio mokagio deleted the xcode-12 branch October 8, 2020 22:23
@jleandroperez
Copy link
Contributor

I'm sorry I'm late to the party!! changes look great!!

mokagio added a commit that referenced this pull request Dec 8, 2020
Now that CocoaPods 1.10.0 is out, we can go back to the original Sodium
library and decommission the fork we've been recently to work around
some Apple Silicon related limitations.

You can verify this works by running

```
bundle exec pod lib lint --allow-warnings
```

For extra context see:

- jedisct1/swift-sodium#213
- jedisct1/swift-sodium#214
- #148
mokagio added a commit that referenced this pull request Dec 9, 2020
Now that CocoaPods 1.10.0 is out, we can go back to the original Sodium
library and decommission the fork we've been recently to work around
some Apple Silicon related limitations.

You can verify this works by running

```
bundle exec pod lib lint --allow-warnings
```

For extra context see:

- jedisct1/swift-sodium#213
- jedisct1/swift-sodium#214
- #148
mokagio added a commit that referenced this pull request Dec 9, 2020
Now that CocoaPods 1.10.0 is out, we can go back to the original Sodium
library and decommission the fork we've been recently to work around
some Apple Silicon related limitations.

You can verify this works by running

```
bundle exec pod lib lint --allow-warnings
```

For extra context see:

- jedisct1/swift-sodium#213
- jedisct1/swift-sodium#214
- #148
mokagio added a commit that referenced this pull request Jan 11, 2021
Now that CocoaPods 1.10.0 is out, we can go back to the original Sodium
library and decommission the fork we've been recently to work around
some Apple Silicon related limitations.

You can verify this works by running

```
bundle exec pod lib lint --allow-warnings
```

For extra context see:

- jedisct1/swift-sodium#213
- jedisct1/swift-sodium#214
- #148
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

Successfully merging this pull request may close these issues.

Pod spec validation failing with Xcode 12

3 participants