Git Product home page Git Product logo

Comments (10)

VikAdvani avatar VikAdvani commented on July 29, 2024 1

Hi @leocavalcante , ahhh, I reproduced the issue. The issue is we don't support the software simulator. Where it says iphone 7 plus above, you'll need to change the target to an actual physical device. Plug an iphone into your mac via a lightening connector, then you'll need to select the iphone in the top left next to the play button. When you select the iphone target the top left of your screen shoud like the following:
screen shot 2017-06-19 at 5 52 57 pm

Now try running and everything should work!

from viro.

VikAdvani avatar VikAdvani commented on July 29, 2024

Hi @leocavalcante. Did you run setup-ide.sh ios first? That runs cocoapods and installs the necessary dependencies.

If you did run the setup-ide script for iOS, then make sure you are opening the .xcworkspace file and not the .xcodeproj. The .xcworkspace file has the proper dependencies to compile while the .xcodeproj does not.

Below shows what your .xcworkspace file should look like when in Xcode( ViroSampleVideoTest would be named your project name):
screen shot 2017-06-19 at 4 34 06 pm

Let us know if the above doesn't work :)

from viro.

leocavalcante avatar leocavalcante commented on July 29, 2024

Yes, I did ;/

Steps were:

react-viro init HelloViro
cd HelloViro
./setup-ide.sh ios
open ios/HelloViro.xcworkspace

Could see HelloViro and Pods folders.
But when running got:

'React/RCTBundleURLProvider.h' file not found

Figured out that it isn't on node_modules, so a deleted it and ran yarn.
Now getting the error below.

I ran ./setup-ide.sh ios again:

==== Running iOS Setup Script ===
running with verbose logging
pwd
Analyzing dependencies
Fetching podspec for `ViroReact` from `../node_modules/react-viro/ios/`
Downloading dependencies
Using ViroReact (1.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Add: ":NSAppTransportSecurity:NSAllowsArbitraryLoads" Entry Already Exists
Add: ":NSCameraUsageDescription" Entry Already Exists

Reopened Xcode using the workspace file, ran Clean then Run again, same two errors.

from viro.

VikAdvani avatar VikAdvani commented on July 29, 2024

Hi, @leocavalcante. Try the following, goto Product->Scheme->Edit Scheme. Make sure parallelize build is checked off, and that React is above the HelloViro target.

So it it should look like the following:
screen shot 2017-06-19 at 5 17 04 pm

If the scheme looks like the above with ViroSampleVideoTest replaced with HelloViro, then try building. Let's see if that works. If it doesn't let me know!

from viro.

leocavalcante avatar leocavalcante commented on July 29, 2024

Yeah, it looks like your SS:
screen shot 2017-06-19 at 21 27 57
Ps.: created a HoViro to retry the steps.

But Im clicking on the Play button (Run I guess, Xcode newbie here) not on Build.

from viro.

leocavalcante avatar leocavalcante commented on July 29, 2024

Hmm, okay. I'll continue my journey tomorrow using a colegue's iPhone.
Thank you very much again for you patience and attention!!

from viro.

VikAdvani avatar VikAdvani commented on July 29, 2024

No prob, let us know tomorrow if you still have issues :)

from viro.

leocavalcante avatar leocavalcante commented on July 29, 2024

Hey @VikAdvani, me again! xD
Now trying on an iPhone device it removed only one of the errors, the first one.

The other: clang: error: linker command failed with exit code 1 (use -v to see invocation) still there. I Googled it and saw that it could be any kind of problem! But if have any ideias do help me out...

from viro.

leocavalcante avatar leocavalcante commented on July 29, 2024

Aha! Did it by setting Enable bitcode to No.
Cheers!

from viro.

VikAdvani avatar VikAdvani commented on July 29, 2024

Hi @leocavalcante, glad it works!

from viro.

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.