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

Archive Problem in Xcode 16 After update Xcode #449

Closed
Pragnesh-4917 opened this issue Sep 20, 2024 · 10 comments
Closed

Archive Problem in Xcode 16 After update Xcode #449

Pragnesh-4917 opened this issue Sep 20, 2024 · 10 comments
Labels
bug Something isn't working
Milestone

Comments

@Pragnesh-4917
Copy link

I'm encountering an issue where the Archive build process fails in Xcode 16 after pushing changes to GitHub. The project builds and runs successfully on the simulator and real devices, but when I attempt to create an Archive build, the process fails.

Screenshot 2024-09-19 at 1 25 27 PM
@HarshaZeitview
Copy link

Hi @Pragnesh-4917
so you need to write a Script on build phases.

# Xcode version validation script
if [ "$XCODE_VERSION_MAJOR" = "1500" ]; then
 echo "Remove signature files (Xcode 15 workaround)"

 # Remove signature files
 rm "$BUILD_DIR/Release-iphoneos/*.signature"
fi

so make sure you check the "For Install builds only".
then try to re run the project and try with Archive.

@Pragnesh-4917
Copy link
Author

Pragnesh-4917 commented Sep 20, 2024

we do it but it still does not work before Xcode 16 version working properly

@Pragnesh-4917 Pragnesh-4917 changed the title Archive Problem in Xcode 16 After Archive Problem in Xcode 16 After update Xcode Sep 20, 2024
@madmeatballs
Copy link

Hi @Pragnesh-4917 so you need to write a Script on build phases.

# Xcode version validation script
if [ "$XCODE_VERSION_MAJOR" = "1500" ]; then
 echo "Remove signature files (Xcode 15 workaround)"

 # Remove signature files
 rm "$BUILD_DIR/Release-iphoneos/*.signature"
fi

so make sure you check the "For Install builds only". then try to re run the project and try with Archive.

Yes, this is more like a workaround. I also do this for the meantime and it disrupts our workflow. Hoping this will be solved.

@tyrauber
Copy link
Collaborator

Duplicate of #442. Please try 10.0.0-alpha.15 .

@Pragnesh-4917
Copy link
Author

Still we are getting this error "@maplibre/maplibre-react-native": "^10.0.0-alpha.15",

@tyrauber
Copy link
Collaborator

Please try 10.0.0-alpha.17.

@eTryp
Copy link

eTryp commented Sep 24, 2024

Alpha.17 with the script included on the build phase is working fine on bare workflow

@Pragnesh-4917
Copy link
Author

Pragnesh-4917 commented Sep 25, 2024

please send me which script add

WE ARE ADDING THIS SCRIPT

Type a script or drag a script file from your workspace to insert its path.

if [ "$XCODE_VERSION_MAJOR" = "1500" ]; then
Screenshot 2024-09-25 at 10 12 03 AM

 echo "Remove signature files (Xcode 15 workaround)";
  rm -rf "$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature";

fi

@madmeatballs
Copy link

Please try 10.0.0-alpha.17.

our project works now but still getting issues when uploading to app store connect. I created a new issue for it #456

@tousif-v
Copy link

tousif-v commented Sep 25, 2024

try this

# Xcode version validation script
if [ "$XCODE_VERSION_MAJOR" = "1600" ] || [ "$XCODE_VERSION_MAJOR" = "1500" ]; then
 echo "Remove signature files (Xcode 16 workaround)"

 # Remove signature files
 rm -rf "$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature";
fi

@KiwiKilian KiwiKilian added this to the 10.0.0 milestone Nov 15, 2024
@KiwiKilian KiwiKilian added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants