Skip to content

How to run FlowCrypt in Xcode simulator? #280

@seisvelas

Description

@seisvelas

I launch Xcode and click "Clone an existing project", give it this git repo, and I land here:

Screen Shot 2021-03-23 at 13 52 00

I can't build it, run it, or anything. Surely I'm missing something.

I also tried building via fastlane, it went like this:

alexalvarado@Alexs-MacBook-Air flowcrypt-ios % bundle exec fastlane build
[✔] 🚀 
+------------------------+---------+-----------------+
|                    Used plugins                    |
+------------------------+---------+-----------------+
| Plugin                 | Version | Action          |
+------------------------+---------+-----------------+
| fastlane-plugin-semap  | 0.2.0   | setup_semaphore |
| hore                   |         |                 |
+------------------------+---------+-----------------+

[14:29:57]: ------------------------------
[14:29:57]: --- Step: default_platform ---
[14:29:57]: ------------------------------
[14:29:57]: Driving the lane 'ios build' 🚀
[14:29:57]: -----------------------------
[14:29:57]: --- Step: setup_semaphore ---
[14:29:57]: -----------------------------
[14:29:57]: Not running on CI, skipping `setup_semaphore`.
[14:29:57]: -----------------
[14:29:57]: --- Step: gym ---
[14:29:57]: -----------------
[14:29:57]: Couldn't find specified scheme 'FlowCrypt'. Please make sure that the scheme is shared, see https://developer.apple.com/library/content/documentation/IDEs/Conceptual/xcode_guide-continuous_integration/ConfigureBots.html#//apple_ref/doc/uid/TP40013292-CH9-SW3
[14:29:57]: Couldn't find any schemes in this project, make sure that the scheme is shared if you are using a workspace
[14:29:57]: Open Xcode, click on `Manage Schemes` and check the `Shared` box for the schemes you want to use
[14:29:57]: Afterwards make sure to commit the changes into version control
+------------------+-----------+
|         Lane Context         |
+------------------+-----------+
| DEFAULT_PLATFORM | ios       |
| PLATFORM_NAME    | ios       |
| LANE_NAME        | ios build |
+------------------+-----------+
[14:29:57]: No Schemes found

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | setup_semaphore  | 0           |
| 💥   | gym              | 0           |
+------+------------------+-------------+

[14:29:57]: fastlane finished with errors

[!] No Schemes found

So I tried to make an empty scheme in Xcode called FlowCrypt, to see what would happen:

alexalvarado@Alexs-MacBook-Air flowcrypt-ios % xcodebuild -workspace FlowCrypt.xcworkspace -list
objc[42087]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f7abe7a0) and ?? (0x1173ac2b8). One of the two will be used. Which one is undefined.
objc[42087]: Class AMSupportURLSession is implemented in both ?? (0x1f7abe7f0) and ?? (0x1173ac308). One of the two will be used. Which one is undefined.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace FlowCrypt.xcworkspace -list

Information about workspace "FlowCrypt":
    Schemes:
        FlowCrypt
alexalvarado@Alexs-MacBook-Air flowcrypt-ios % bundle exec fastlane build
[✔] 🚀 
+------------------------+---------+-----------------+
|                    Used plugins                    |
+------------------------+---------+-----------------+
| Plugin                 | Version | Action          |
+------------------------+---------+-----------------+
| fastlane-plugin-semap  | 0.2.0   | setup_semaphore |
| hore                   |         |                 |
+------------------------+---------+-----------------+

[14:33:24]: ------------------------------
[14:33:24]: --- Step: default_platform ---
[14:33:24]: ------------------------------
[14:33:24]: Driving the lane 'ios build' 🚀
[14:33:24]: -----------------------------
[14:33:24]: --- Step: setup_semaphore ---
[14:33:24]: -----------------------------
[14:33:24]: Not running on CI, skipping `setup_semaphore`.
[14:33:24]: -----------------
[14:33:24]: --- Step: gym ---
[14:33:24]: -----------------
[14:33:24]: Couldn't find specified scheme 'FlowCrypt'. Please make sure that the scheme is shared, see https://developer.apple.com/library/content/documentation/IDEs/Conceptual/xcode_guide-continuous_integration/ConfigureBots.html#//apple_ref/doc/uid/TP40013292-CH9-SW3
[14:33:24]: Couldn't find any schemes in this project, make sure that the scheme is shared if you are using a workspace
[14:33:24]: Open Xcode, click on `Manage Schemes` and check the `Shared` box for the schemes you want to use
[14:33:24]: Afterwards make sure to commit the changes into version control
+------------------+-----------+
|         Lane Context         |
+------------------+-----------+
| DEFAULT_PLATFORM | ios       |
| PLATFORM_NAME    | ios       |
| LANE_NAME        | ios build |
+------------------+-----------+
[14:33:24]: No Schemes found

+------+------------------+-------------+
|           fastlane summary            |
+------+------------------+-------------+
| Step | Action           | Time (in s) |
+------+------------------+-------------+
| 1    | default_platform | 0           |
| 2    | setup_semaphore  | 0           |
| 💥   | gym              | 0           |
+------+------------------+-------------+

[14:33:24]: fastlane finished with errors

[!] No Schemes found

No luck :( Suggestions are very appreciated! I'm sure I'm completely misunderstanding what I'm supposed to be doing here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions