Git Product home page Git Product logo

Comments (18)

lyswhut avatar lyswhut commented on June 13, 2024 2

回头我把IOS的文件夹还原回去

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

由于之前没有考虑对IOS的兼容,所以目录已经被我删掉了,如果你想要维护IOS端,下个版本我会把那个文件夹还原回去

from lx-music-mobile.

downerxl avatar downerxl commented on June 13, 2024

由于之前没有考虑对IOS的兼容,所以目录已经被我删掉了,如果你想要维护IOS端,下个版本我会把那个文件夹还原回去

你好,这个版本还是没把ios目录放进来啊。。

from lx-music-mobile.

AleoJoker avatar AleoJoker commented on June 13, 2024

ios编译运行后好多报错

from lx-music-mobile.

Arnoldnuo avatar Arnoldnuo commented on June 13, 2024

啥时候还原回去呢?我想把ios跑起来试试

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

已经将IOS目录还原回去了,不知道能不能跑起来,
由于部分功能由原生模块实现的,所以还需要将android/app/src/main/java/com/lxmusicmobile下的方法实现一遍,基本每个方法我都备注有源码来源,你们可以去找到相应的IOS代码放进去

from lx-music-mobile.

izsm avatar izsm commented on June 13, 2024

已经将IOS目录还原回去了,不知道能不能跑起来,
由于部分功能由原生模块实现的,所以还需要将android/app/src/main/java/com/lxmusicmobile下的方法实现一遍,基本每个方法我都备注有源码来源,你们可以去找到相应的IOS代码放进去

`Invariant Violation: "LxMusicMobile" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.`

大佬有遇到这个问题吗

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

`Invariant Violation: "LxMusicMobile" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.`

大佬有遇到这个问题吗

先尝试执行下npx rnn-link,若还是不行就看官方文档弄吧
看起来是 react-native-navigation 的IOS原生代码没有配置,尝试按照官方文档去配置https://wix.github.io/react-native-navigation/docs/installing#ios

from lx-music-mobile.

izsm avatar izsm commented on June 13, 2024

`Invariant Violation: "LxMusicMobile" has not been registered. This can happen if:

  • Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.
  • A module failed to load due to an error and AppRegistry.registerComponent wasn't called.`

大佬有遇到这个问题吗

先尝试执行下npx rnn-link,若还是不行就看官方文档弄吧
看起来是 react-native-navigation 的IOS原生代码没有配置,尝试按照官方文档去配置https://wix.github.io/react-native-navigation/docs/installing#ios

执行下npx rnn-link就好了,现在能跑起来了,不过有问题,连接不到服务器,网络权限都打开了
WechatIMG156

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

APP无法访问网络的问题应该要声明相应权限,允许发起http请求(默认只允许https),这些我已经在安卓的的AndroidManifest.xml配置了,IOS需要你自己配
图标无法显示的问题你可能还要把图标文件放到ios目录,安卓那边我已经放进去了
至于布局溢出问题,你尝试使用SafeAreaView去包裹下应该就可以了

from lx-music-mobile.

izsm avatar izsm commented on June 13, 2024

好吧,我以为这些都搞过了😂

from lx-music-mobile.

ILoveLin avatar ILoveLin commented on June 13, 2024

啥时候安利一波 IOS用户哇,大佬~~~~

from lx-music-mobile.

windows7lake avatar windows7lake commented on June 13, 2024

所以ios能跑起来吗?我卡在启动页就不动了

from lx-music-mobile.

punk2plus avatar punk2plus commented on June 13, 2024

所以ios能跑起来吗?我卡在启动页就不动了

运行 npx rnn-link 后启动不报错 ,但是卡在启动页(同上)
init() 方法catch
[TypeError: null is not an object (evaluating 'LyricModule.toggleTranslation')]

if (!lrcTools.lyricText) return // 这里直接返回空了 造成上面报错

@lyswhut 有空能帮忙看看不

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

已经将IOS目录还原回去了,不知道能不能跑起来, 由于部分功能由原生模块实现的,所以还需要将android/app/src/main/java/com/lxmusicmobile下的方法实现一遍,基本每个方法我都备注有源码来源,你们可以去找到相应的IOS代码放进去

他跑起来了:#84

from lx-music-mobile.

Yuan920 avatar Yuan920 commented on June 13, 2024

已经将IOS目录还原回去了,不知道能不能跑起来, 由于部分功能由原生模块实现的,所以还需要将android/app/src/main/java/com/lxmusicmobile下的方法实现一遍,基本每个方法我都备注有源码来源,你们可以去找到相应的IOS代码放进去

你好,安卓下目录好像发生了改变,没有上面这个路径

from lx-music-mobile.

lyswhut avatar lyswhut commented on June 13, 2024

你好,安卓下目录好像发生了改变,没有上面这个路径

改成这个了:android/app/src/main/java/cn/toside/music/mobile

from lx-music-mobile.

huzhipeng avatar huzhipeng commented on June 13, 2024

@lyswhut 您好,ios运行,终端出现以下log后,模拟器黑屏是什么原因啊
WARN Require cycle: node_modules/react-native-crypto/index.js -> node_modules/react-native-randombytes/index.js -> node_modules/sjcl/sjcl.js -> node_modules/react-native-crypto/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
LOG starting app...
INFO All screens have been registered...
LOG Register app launched listener
LOG handle registerPlaybackService...
LOG reg services...

from lx-music-mobile.

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.