Nativescript throw Thread 1: EXC_BAD_ACCESS (code=1, address=0x1edf38) in only Xcode
Nativescript throwing Thread 1: EXC_BAD_ACCESS (code=1, address=0x1edf38) in Xcode only
升级到 NS 7 并在 xcode 中构建后出现错误。我可以从 CLI 成功构建,运行 应用程序,一切都很好但是当我在物理设备或模拟器上构建 xCode 和 运行 并尝试登录时,我收到此错误.
在日志输出中 self = (SAMKeychainQuery*)
& password = (NSSTRING *) nil
所以它没有得到密码值,但是为什么它在从 CLI 构建时可以访问它而不是 Xcode?
我 运行宁 "@nativescript/core": "^7.0.13", "@nativescript/ios": "7.0.6", Xcode 12.
这是我的密码文本字段:
<TextField
:isEnabled="!processing"
ref="password"
class="input placeholderColor"
hint="Password"
secure="true"
v-model="user.password"
@loaded="passwordTextField"
:returnKeyType="isLoggingIn ? 'done' : 'next'"
fontSize="18"
/>
//login function
async login(user) {
try {
console.log("in login() in authservice")
const loginRequest = await firebase.login({
type: firebase.LoginType.PASSWORD,
passwordOptions: {
email: user.email,
password: user.password,
},
});
const handleLogin = await this.handleLogin(loginRequest);
return handleLogin;
} catch (error) {
return error;
}
}
当我从 Xcode 构建时,我的 login() 函数甚至没有触发,但再次从 CLI 中一切正常。
完全删除 @nativescript/secure-storage
插件,然后 ns clean
并重新安装安全存储插件。
仍然不知道为什么它在 CLI 中工作,而不是 Xcode 如果插件没有正常工作。
升级到 NS 7 并在 xcode 中构建后出现错误。我可以从 CLI 成功构建,运行 应用程序,一切都很好但是当我在物理设备或模拟器上构建 xCode 和 运行 并尝试登录时,我收到此错误.
在日志输出中 self = (SAMKeychainQuery*)
& password = (NSSTRING *) nil
所以它没有得到密码值,但是为什么它在从 CLI 构建时可以访问它而不是 Xcode?
我 运行宁 "@nativescript/core": "^7.0.13", "@nativescript/ios": "7.0.6", Xcode 12.
这是我的密码文本字段:
<TextField
:isEnabled="!processing"
ref="password"
class="input placeholderColor"
hint="Password"
secure="true"
v-model="user.password"
@loaded="passwordTextField"
:returnKeyType="isLoggingIn ? 'done' : 'next'"
fontSize="18"
/>
//login function
async login(user) {
try {
console.log("in login() in authservice")
const loginRequest = await firebase.login({
type: firebase.LoginType.PASSWORD,
passwordOptions: {
email: user.email,
password: user.password,
},
});
const handleLogin = await this.handleLogin(loginRequest);
return handleLogin;
} catch (error) {
return error;
}
}
当我从 Xcode 构建时,我的 login() 函数甚至没有触发,但再次从 CLI 中一切正常。
完全删除 @nativescript/secure-storage
插件,然后 ns clean
并重新安装安全存储插件。
仍然不知道为什么它在 CLI 中工作,而不是 Xcode 如果插件没有正常工作。