Giter Site home page Giter Site logo

Local compilation about ios-mail HOT 5 CLOSED

protonmail avatar protonmail commented on August 20, 2024
Local compilation

from ios-mail.

Comments (5)

mackuba avatar mackuba commented on August 20, 2024 2

They use manual certificate/provisioning setup, so Xcode expects all required certificates & provisioning profiles to be there in your developer account (for the given app ID). The problem is that you can't even create them for that app ID, because this ID is assigned to ProtonMail's account. So you need to come up with some other, like if you created your own app (I used eu.mackuba.ProtonMail), and replace the ch.protonmail.protonmail in all relevant targets (ProtonMail, Share, Push, PushService and Siri, leave the .Share etc. suffixes for each target). You probably also need to update the ID in the same way in App Groups and Keychain Sharing sections. And of course choose your team in the Team selector.

And then you either create all provisioning profiles manually, or just turn on automatic provisioning in all these targets like I did :)

I also had to update the IDs and my team identifier (the one which is now 2SB5Z68H26) in KeychainWrapper.swift and in ProtonMailCommon/Constants/App.swift.

from ios-mail.

D1ag0n-Young avatar D1ag0n-Young commented on August 20, 2024

Can I clone the project successfully compiled with XCode11.2 locally? Follow the prompts to run the project,I am getting the following error when compiling:
No such module 'EllipticCurveKeyPair' BioProtection.swift and
Command CompileSwift failed with a nonzero exit code

@zhj4478

from ios-mail.

mackuba avatar mackuba commented on August 20, 2024

Did you open the project through .xcworkspace? The EllipticCurveKeyPair module seems to come from a CocoaPod included in the repo.

from ios-mail.

D1ag0n-Young avatar D1ag0n-Young commented on August 20, 2024

Did you open the project through .xcworkspace? The EllipticCurveKeyPair module seems to come from a CocoaPod included in the repo.

Thank you very much for your answer, the problem has been solved, but there has been a new problem:
error: "ProtonMail" requires a provisioning profile with the App Groups, In-App Purchase, Siri, iCloud, and Push Notifications features. Select a provisioning profile in the Signing & Capabilities editor. (in target 'ProtonMail' from project 'ProtonMail')

error: "Siri" requires a provisioning profile. Select a provisioning profile in the Signing & Capabilities editor. (in target 'Siri' from project 'ProtonMail')

Is it I what forgot?

from ios-mail.

zhj4478 avatar zhj4478 commented on August 20, 2024

@mackuba, thank you for that. it is exactly what you said.
we will try to update the readme and put this in the setup section.

from ios-mail.

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.