Coder Social home page Coder Social logo

xcode build fail in Xcode 14 about fastlane HOT 8 OPEN

q1019736727 avatar q1019736727 commented on April 25, 2024 7
xcode build fail in Xcode 14

from fastlane.

Comments (8)

acoutts avatar acoutts commented on April 25, 2024 14

Having the same issues - have not been able to create any builds in CI using xcode 14.

from fastlane.

fastlane-bot avatar fastlane-bot commented on April 25, 2024 3

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

from fastlane.

9now-Jason avatar 9now-Jason commented on April 25, 2024 3

We had the same issue, maybe the following things you can try to fix it:

  • By adding --versbose at the end of the fastlane command, there are more details, you might be able to find something useful.
  • Check the gym log, in our case, it is the gym log shows the right direction to fix this issue.

Our issue contains two parts:

  • It complains that the target contains macOs which is not included in the distribution file, so by removing the macOs from the General tab can fix this error
  • Some of the Pods don't have developer team selected, which is new on XCode 14, I think this might be some kind of bug in the new XCode. But the fix is also easy, this post is very helpful. (#20626)

After fixing the above two errors, my build is working fine. Hope the solution helps.

from fastlane.

haphanquang avatar haphanquang commented on April 25, 2024 3

I'm falling same issue...

from fastlane.

rubnov avatar rubnov commented on April 25, 2024 2

I'm having the same issue.
Xcode IDE build and archive commands succeed, although many errors are emmitted:

...
error: Dependency for P1:target-Redacted:Release:SwiftDriver Compilation Requirements Redacted normal arm64 com.apple.xcode.tools.swift.compiler is not absolute (Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Modules/module.modulemap). (in target 'Redacted' from project 'Redacted')
...

Xcode command line tool xcodebuild fails, most likely because of these errors. Although it does produce the .xcarchive file.

This looks like an issue in Xcode 14.0.
https://developer.apple.com/forums/thread/714549?login=true&page=1#729945022

from fastlane.

rubnov avatar rubnov commented on April 25, 2024

I've looked at the gym log file. There are many SwiftDriver errors emitted indeed by xcodebuild, but they do not seem to break the build. The list of errors end with:

...
error: Dependency for P1:target-[Redacted]-4d48d69388424f8acfb0a5e7d92f4c924d62802467c101da85f5b2047549d072-:Release:SwiftDriver Compilation Requirements Redacted normal arm64 com.apple.xcode.tools.swift.compiler is not absolute (Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Modules/module.modulemap). (in target 'Redacted' from project 'Redacted')

Command SwiftDriver Compilation Requirements emitted errors but did not return a nonzero exit code to indicate failure

This appears to be an issue with Xcode 14, reported here.

The build log continues after the above and the build succeeds. Following the build CodeSign is invoked and the binary is signed successfully, generating the .app file. When I run Xcode > Archive from Xcode IDE, this is where the archive process ends and a popup window opens with the archive file, allowing me to export the archive as ad-hoc.

However, when running with fastlane from the command line, gym fails the archive and the command line output ends as follows:

** ARCHIVE FAILED **
ERROR [2022-10-13 17:30:29.41]: Exit status: 65

+---------------+-------------------------+
|            Build environment            |
+---------------+-------------------------+
| xcode_path    | /Applications/Xcode.app |
| gym_version   | 2.210.1                 |
| export_method | ad-hoc                  |
| sdk           | iPhoneOS16.0.sdk        |
+---------------+-------------------------+ 

from fastlane.

Daemonson avatar Daemonson commented on April 25, 2024

#20810 (comment)

from fastlane.

vramesh-bex avatar vramesh-bex commented on April 25, 2024

Facing the same issue with this Xcode 14.0.x, on macOS 13.2 (Ventura)

from fastlane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.