Skip to content

Invalid paths created in IOSPostBuildProcessor on v5.2.0 #181

@mrcarriere

Description

@mrcarriere

The iOS Build PostProcessor creates an full path reference to SDK specific files, such that if the folder is moved, the Archive action will fail. This can be problematic for teams who use a CI/CD flow where Xcode projects are moved rather than being built in-place.

This occurred around v5.0, around the same time we reported #144. We had fixed it locally, but just had to apply the same fix to v5.2 when attempting to release a new build with the updated SDK.

Our change to resolve the issue is as follows:

Image

STR

  1. Create an example iOS test export from a CleverTap project.
  2. Move the Xcode folder to a new location
  3. Open the Xcode project and attempt to preform an Archive action.

Result

Project fails to archive with the following error:

17:30:09 error: lstat(/Users/michael/.jenkins/workspace/[REDACTED]Xcode/CleverTapSDK): No such file or directory (2) (in target 'Unity-iPhone' from project 'Unity-iPhone')

Expected

Project folder is able to be relocated and still archives successfully.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions