air20
V2EX  ›  问与答

写 OS X 上的应用不需要订阅开发者帐号?

  •  
  •   air20 · Oct 21, 2014 · 3286 views
    This topic created in 4242 days ago, the information mentioned may be changed or developed.
    如题
    玩 openGL 画了个三角形 竟然可以直接跑
    #import "AIROpenGLView.h"
    #include <OpenGL/gl.h>

    @implementation AIROpenGLView

    static void drawAnObject()
    {
    glColor4f(1.0f, 0.85f, 1.0f, 1.0f);
    glBegin(GL_TRIANGLES);
    {
    glVertex3f( 0.0, 0.6, 0.0);
    glVertex3f( -0.2, -0.3, 0.0);
    glVertex3f( 0.2, -0.3 ,0.0);
    }
    glEnd();
    }
    // cnt
    6 replies    2014-10-21 09:14:54 +08:00
    panxianhai
        1
    panxianhai  
       Oct 21, 2014
    发布到app store才需要开发者账号。
    air20
        2
    air20  
    OP
       Oct 21, 2014
    @panxianhai 可是我从 Apple Developer 上下载的 Demo 为什么都要开发者帐号呢
    wzxjohn
        3
    wzxjohn  
       Oct 21, 2014 via iPhone
    @air20 xCode程序和C程序能一样么。。。
    air20
        4
    air20  
    OP
       Oct 21, 2014
    @wzxjohn 并不是 C 程序,我那个 openGL 的程序也是 Xcode -> New Project -> OS X -> Cocoa Application 这样创建的
    typcn
        5
    typcn  
       Oct 21, 2014
    写程序本身就不需要 ios 也是
    cdfmr
        6
    cdfmr  
       Oct 21, 2014
    只有发布到App Store才需要开发者帐号,下载的Demo可能是设置了代码签名,在编译选项中去掉就是了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3336 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 12:53 · PVG 20:53 · LAX 05:53 · JFK 08:53
    ♥ Do have faith in what you're doing.