Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

Code is giving ERROR in Objective C. #361

@RamNineHertz

Description

@RamNineHertz

Hello,

Greetings of the day!!

We are the team of developers who want to implement Live Broadcast feature in one of our ongoing iOS project. Now to provide live streaming of that broadcast on Youtube/Facebook, we're using your code. when we apply this code in our project this is giving following errors:-

Undefined symbols for architecture x86_64:
"OBJC_CLASS$_VCSimpleSession", referenced from:
objc-class-ref in VideoUploadViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Code which we've applied:-

contentView=[[UIView alloc] init];
[self.view addSubview:contentView];
contentView.frame=self.view.frame;

// _session=[VCSimpleSession new];
_session=[[VCSimpleSession alloc] initWithVideoSize:CGSizeMake(1920, 1080) frameRate:30 bitrate:4000000 useInterfaceOrientation:NO];

// _session=[_session initWithVideoSize:CGSizeMake(1920, 1080) frameRate:30 bitrate:4000000 useInterfaceOrientation:NO];
[contentView addSubview:_session.previewView];

_session.previewView.frame = contentView.bounds;
_session.delegate = self;

Awaiting your response.

Thanks in advance.
Ramprakash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions